This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hi, I am about to wrap up my assignment, and found that almost all methods in my FlightBooking application classes only need to be private. In another word, they are application-specific methods, not really usable for other applications (not like Data class). Does this look right to you? If private methods are okay, then, I am confused what the javadoc would look like, since only those Data class/DataServer class related methods are public to be shown in the javadoc API..... I am really worried.... any help would be very very appreciated....TIA
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Hello, I had some doubts about this too when I submitted my assignment. I had programmed everything in a way that seemed very natural to me: everything that is only needed from within the class is private, everything needed by other classes is public. I took the easy way out and just left it as it was, and I passed ! I don't think the assignments are graded to such a low level (Sun has to grade too many to do that in my opinion). More important is a rational, clear and consistent divisioning of functionality in classes and packages, I think. hope this lightens your worries. I know pushing that "Submit assignment" button is something very stressing ... regards, G�nther. http://www.javacoding.net