Infosys interview question

Program explaining Inheritance and its types.