Infosys interview question

Explain types of inheritance and polymorphism