This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Associate Certification (SCJA,OCAJ 5/6) and the fly likes need an answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Associate Certification (SCJA,OCAJ 5/6)
Bookmark "need an answer" Watch "need an answer" New topic
Author

need an answer

sanjana suman
Ranch Hand

Joined: Oct 09, 2008
Posts: 51
what is the relation between students and classess in a college?

association or composition?


thanks in advance.

sanjana suman.
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
I think is association.

composition is a term used when you create a class that has an instance of another class as its members and then adds additional methods to class B, which is usually prefered over inheritance.


(peace)


Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
 
jQuery in Action, 2nd edition
 
subject: need an answer