Pergunta de entrevista da empresa Juvare

Explain inheritance in object-oriented programming?