Why is composition often preferred over inheritance?

Practice this question from Quiz: OOPS Revision Sheet, with options and an explanation.

Question

Why is composition often preferred over inheritance?

Option A

It avoids all object creation cost

Option B — Correct answer

It reduces tight coupling and is usually easier to change safely

Option C

It makes runtime polymorphism impossible

Option D

It removes the need for interfaces

Quiz: OOPS Revision Sheet

All questions · Previous question · Next question

Open on QuizMaker