🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: OOP Interview Questions: all 10 questions

Quiz: OOP Interview Questions · Question 5 of 10

A Team holds Player objects created elsewhere; deleting the team doesn't delete players. This is:

A Team holds Player objects created elsewhere; deleting the team doesn't delete players. This is:

  1. A.Composition
  2. B.Aggregation
  3. C.Inheritance
  4. D.Polymorphism
Answer & explanation

Correct answer: Aggregation

Parts survive the whole → aggregation.

Can you get the rest right without peeking?

Take the timed Quiz: OOP Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →