Capgemini interview question

C++ Inheritance, polymorphism.