Pergunta de entrevista da empresa Nagarro

Explain the concept of inheritance.