Pergunta de entrevista da empresa Fiserv

What is inheritance? Give an example.