Infosys interview question

Inheritance, polymorphism, and other OOP concepts