In multilevel inheritance, which is the most significant feature of OOP used?

Options

  • A. Flexibility
  • B. Code reusability
  • C. Code readability
  • D. Code efficiency

Correct Answer (Detailed Explanation is Below)

B. Code reusability

Detailed Explanation

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.

OOps! You are currently offline.