Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Data class question

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am thinking of not implementing public methods of Data class inside my client. If I give the reasons behind this choice would I still pass providing that the system does what is intented to do?
What I am trying to say is this: if I differ from the spec - would I pass the exam?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not quite sure what you mean. But your client/GUI really shouldn't have the data class methods in it. But I'll clarify that, by stating that my DataAccess classes, local and remote, I do not consider as part of the client. the client uses these classes, but, in my case, indirectly. I actually have a DataAccessFacade that has the methods of bookFlight(), search(), etc, and this class calls the Local or Remote Data Access class that implements the data class public methods. So the client does not implement the data class public methods at all.
Does this answer your question?
I am sure that if you have a good reason why you chose certain routes to your solution in your exam, I am sure they will accept it.
Mark
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!