Pergunta de entrevista da empresa Infosys

Implement a real life example using class and inheritance