This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have seen a class has "is a" and "has a" relationship with one class. Is that a correct design? If it is correct, let me know the advantage of that design? On what scenario, we need to use this design?
Object-oriented designs should be based on domain/business requirements. In order to judge if a design is "efficient" or "not efficient", one would need to first read and understand the requirements. In software design there never is "correct" or "incorrect", as there are always many different styles and techniques which can be used to implement a particular requirement.
Joined: Oct 11, 2005
Thanks for your reply.
Reg in subject line means "Regarding".
Joined: Apr 16, 2008
Thank you for explaining what you intended "Reg" to mean in your subject line.
Note , "Reg" is not an English word and your personal shorthand may not be understood. It is better to write with
real words instead of assuming that personal shorthand is understandable.