← Back to Test

Problem 4 - Entrance Test

In object-oriented programming, what is the primary benefit of using inheritance?

Correct: C

Inheritance promotes code reusability by allowing a class (subclass or derived class) to inherit properties and methods from another class (superclass or base class). It also establishes an 'is-a' relationship, reflecting real-world hierarchies.