This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need an answer  RSS feed

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the relation between students and classess in a college?

association or composition?


thanks in advance.

sanjana suman.
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!