Pregunta de entrevista de Capgemini

the coding question to implement inheritance and polymorphism