Pergunta de entrevista da empresa Seven Peaks Software

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