aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes same example for association and aggregation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "same example for association and aggregation" Watch "same example for association and aggregation" New topic
Author

same example for association and aggregation

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
One doubt from SCEA certificate guide by Mark Cade and Simon Roberts.

On page 40, they are explaining association and aggregation. They took the same example (company and employee) to explain both the relationship so it confuses readers.

What exactly is the difference???
(I know that aggregation is one of the form of association but where to keep association relationship and where aggregation???)

Also, they haven't mentioned anything about composition relationship (which is the strong form of association).

Thanks.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
On page 45, relationship b/w Customer and CashAccount is association and relationship b/w Customer and Portfolio is aggregation. Why so???

Thanks!
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by ankur rathi:
On page 40, they are explaining association and aggregation. They took the same example (company and employee) to explain both the relationship so it confuses readers.


May be. Beside I haven't read the book, thats what I want. To see the difference clearly, the one should use the same example, if possible. I would give extra points for that. To me confusion might occur when examples are totally different, then we can't really see the difference sometime.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: same example for association and aggregation
 
Similar Threads
Implementation of Association and Aggregation Relationships.
Association ,Composition, Aggregation
Association and aggregation
Dependency vs. Association
Association and dependency