wood burning stoves 2.0*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Regarding: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Regarding: "is A" And "has A" Relationship " Watch "Regarding: "is A" And "has A" Relationship " New topic
Author

Regarding: "is A" And "has A" Relationship

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi,

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?

The skeleton of the code :



Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
In the subject line, what does "Reg" mean?

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.
Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi,

Thanks for your reply.

Reg in subject line means "Regarding".
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
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.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

Moderator adapted title.


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding: "is A" And "has A" Relationship