-Inheritance allows us to define a class that inherits all the methods and properties from another class.
it is the class being inherited from, also called base class.
Child class is the class that inherits from another class, also called derived class.
- when more than one child class are inherits the property of the same parent class then this type of inheritance are said to be Heirarchical Inheritance.
-Here class A is a parent class, and class B, class C, class D are child class which inherits the property of the class A.