Pregunta de entrevista de Seven Peaks Software

How to use Polymorphism and Inheritance to make the code runnable?