Skip to content
Sharp

Object-oriented programming · interview question

What issue might arise from using deep inheritance hierarchies?

Multiple choiceHardchapter-5-curatedpremiumoopcomposition-vs-inheritance
Choose one answer
Answer and explanation

Correct answer

D. Tight coupling and reduced maintainability.

Why

Deep inheritance hierarchies can lead to tight coupling, where changes in the superclass may require changes in all subclasses, thus reducing the system's maintainability.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →