• Post Reply Bookmark Topic Watch Topic
  • New Topic

UmL question  RSS feed

 
Shankar Ranganathan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Class A has an aggregation relation with Class B where would the diamond will point to?ie whether the diamond will point towards A or B.
 
Tom Adams
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on which is the Parent class. The diamond goes on the class that contains or references the other class.
Another way to look at it is that it goes on the single multiplicity side.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!