hamburger

Which of the following provides a reuse mechanism?

By BYJU'S Exam Prep

Updated on: September 25th, 2023

Which of the following provides a reuse mechanism?

  1. Abstraction
  2. Inheritance
  3. Dynamic Binding
  4. Encapsulation

Answer: B. Inheritance

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:

Our Apps Playstore
POPULAR EXAMS
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com
Home Practice Test Series Premium