← Quiz: Composition vs Inheritance: all 10 questions
Quiz: Composition vs Inheritance · Question 2 of 10
The problem where a subclass breaks because of hidden internal details of its parent is called:
The problem where a subclass breaks because of hidden internal details of its parent is called:
- A.The diamond problem
- B.The fragile base class problem
- C.Method hiding
- D.Shadowing
Answer & explanation
Correct answer: The fragile base class problem
The subclass depends on how the parent works inside, which can change.
Can you get the rest right without peeking?
Take the timed Quiz: Composition vs Inheritance quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →