What do you mean by inheritance in OOP?
Inheritance is the process by which objects can acquire the properties of objects of some other class.