OOP

Inheritance in OOP

Inheritance is the process of acquiring or sharing the properties behavior of the base class into the sub class to achieve reusability

Example