• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question (class relationships)

 
Andrei Mura
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have this:
1.

What kind of relationship is between object of A class and its contained object b?
I think that is aggregation. Is it right? (Why not?)
2.
Second example:

I think that is also aggregation, but in some exam's questions i saw that is a direct association.
What's your opinion.

N.B. -2 if i have the same situation but another names, does it change the situation?


I'm waiting for your thoughts.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic