What may be achieved by the inheritance feature of object-oriented programming?

2022

What may be achieved by the inheritance feature of object-oriented programming?

Answer: C. ReusabilityInheritance allows a class to derive properties and methods from another class. This mechanism primarily promotes code reusability by reducing redundancy in…

  1. A.

    Security

  2. B.

    Robustness

  3. C.

    Reusability

  4. D.

    Abstraction

Attempted by 964 students.

Show answer & explanation

Correct answer: C

Inheritance allows a class to derive properties and methods from another class. This mechanism primarily promotes code reusability by reducing redundancy in software development.

Explore the full course: Uppsc Computer Operator Grade B

Loading lesson…