what is inheritance and polymorphysm?
Inheritance is the process by which a derived class or child class inherits all the features, properties and methods of base class or parent class.
Polymorphism describes the ability of the object in belonging to different types with specific behavior of each type. So by using this, one object can be treated like another and in this way it can create and define multiple level of interface. Here the programmers need not have to know the exact type of object in advance and this is being implemented at runtime.
For more information, visit the following link: