IBM interview question

inheritance, polymorphism