This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Associate Certification (SCJA,OCAJ 5/6) and the fly likes Question (class relationships) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Associate Certification (SCJA,OCAJ 5/6)
Reply Bookmark "Question (class relationships)" Watch "Question (class relationships)" New topic
Author

Question (class relationships)

Andrei Mura
Greenhorn

Joined: Nov 26, 2009
Posts: 18
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Question (class relationships)
 
Similar Threads
interface implementation
Objects eligible for garbage collection.
what is aggression and how it differs from inheritence...
Relationship between 2 classes, simple scenario.
JSP