Why do interviewers often prefer asking about composition over inheritance?
Practice this question from Quiz: OOPS Revision Sheet, with options and an explanation.
Question
Why do interviewers often prefer asking about composition over inheritance?
Option A
To test knowledge of basic definitions.
Option B — Correct answer
To assess understanding of how concepts relate to scale, correctness, or user impact.
The text states: 'Why is composition often preferred over inheritance? Checks whether you can connect a concept to scale, correctness, or user impact.'
Option C
To see if candidates can write complex recursive functions.
Option D
To evaluate knowledge of data structures.