• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question (class relationships)

Andrei Mura
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this:

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?)
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.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!