Pergunta de entrevista da empresa Capgemini

the coding question to implement inheritance and polymorphism