Inheritance in OOP allows a class to ___________ properties and behaviors of another class.

  • Encapsulate
  • Extend
  • Hide
  • Implement
Inheritance in Object-Oriented Programming (OOP) allows a class to extend properties and behaviors of another class. When a class inherits from another class, it gains access to its attributes and methods, allowing for code reuse and the creation of hierarchical relationships. This helps in building more complex and structured programs by organizing classes based on their common characteristics and functionalities.
Add your answer
Loading...

Leave a comment

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