Inheritance
Meaning
A mechanism in object-oriented programming to create a new class using the properties of an existing class.
Usage Examples
- Inheritance allows a new class to inherit methods and properties from an existing class.
- In Java, the 'extends' keyword is used to implement inheritance.
- Inheritance promotes code reusability and organization.
- A subclass can override methods of the superclass.