• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need an answer

 
sanjana suman
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.
 
Omar Al Kababji
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