Kellton interview question

Inheritence with runtime polymorphism?Logical question with some hand written code.