What is inheritance? | Eklavya Online

What is inheritance?

Inheritance is a method for creating hierarchies of objects wherein one class, called a subclass, is based on another class, called a base class.