_______ is a mechanism by which one class inherits the properties and behavior of another class in OOP.

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Inheritance is a mechanism by which one class inherits the properties and behavior of another class in OOP. It promotes code reuse and establishes a relationship between classes, facilitating the creation of a hierarchy.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *