File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Junior/Associate Certification (SCJA,OCAJ 5/6/8) and the fly likes Question (class relationships) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Junior/Associate Certification (SCJA,OCAJ 5/6/8)
Bookmark "Question (class relationships)" Watch "Question (class relationships)" New topic

Question (class relationships)

Andrei Mura

Joined: Nov 26, 2009
Posts: 18
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.
I agree. Here's the link:
subject: Question (class relationships)
It's not a secret anymore!