Pregunta de entrevista de Infosys

Implement a real life example using class and inheritance