Capgemini Interview Question

Was asked about basics of inheritance and polymorphism.