🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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:

  1. A.The diamond problem
  2. B.The fragile base class problem
  3. C.Method hiding
  4. 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 →