In OOP, which of the following concepts provides the idea of reusability?
2025
In OOP, which of the following concepts provides the idea of reusability?
- A.
Data abstraction
- B.
Polymorphism
- C.
Inheritance
- D.
Dynamic binding
Attempted by 150 students.
Show answer & explanation
Correct answer: C
In Object-Oriented Programming, inheritance is the core concept that enables code reusability. It allows a new class to derive properties and methods from an existing parent class, reducing redundancy. While abstraction hides details and polymorphism offers flexibility, inheritance specifically facilitates sharing code across related classes.