What does the term "inheritance" mean in the context of programming?

  • Code Extensibility
  • Code Flexibility
  • Code Organization
  • Reusing Code
Inheritance in programming refers to the mechanism by which a class can inherit properties and behavior from another class. This promotes code reusability and allows for the creation of hierarchical relationships between classes, where subclasses inherit attributes and methods from their parent or base class.
Add your answer
Loading...

Leave a comment

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