Infosys Interview Question

Inheritance in java