← 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:
- A.Composition
- B.Aggregation
- C.Inheritance
- 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 →