Which Feature of OOP illustrated the code reusability?

Which Feature of OOP illustrated the code reusability?
A. Polymorphism
B. Abstraction

C. Encapsulation
D. Inheritance

ANSWER: D) Inheritance
Explanation : Inheritance illusterated the reuse of code already written and also can avoid creation of many new functions or variables, as that can be done one time and be reused, using classes.

Leave a Comment