In multilevel inheritance, which is the most significant feature of OOP used?
Options
- A. Flexibility
- B. Code reusability
- C. Code readability
- D. Code efficiency
B. Code reusability
In multilevel inheritance, a class inherits from another class, and then another class inherits from it.
Example:
Class A → Class B → Class C
This allows the derived classes to reuse the properties and methods of the base classes.
The OOP feature responsible for this is Inheritance, and its most important advantage is code reusability.
Languages like C++ and Java support multilevel inheritance to promote reuse of existing code.
Attempt Quiz Now:
BPSC Tre 4.0 OOPS Concepts Practice Set