Pergunta de entrevista da empresa Infosys

What is inheritance/polymorphism?