Inheritance is the feature that provides a reuse mechanism.
Solution
The right choice is option B. Inheritance allows a child class to acquire the properties of the parent class or base class, thus allowing the child class to use the members and methods of the parent class. This mechanism provides reusability to the user. While abstraction, encapsulation, and dynamic binding have different functionalities in the OOP paradigm. So, the correct answer to the question: Which of the following provides a reuse mechanism? is option B.
☛ Related Questions:
Comments
write a comment