Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

same example for association and aggregation

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic