Capgemini interview question

Write a program that invloves inheritance.