Pergunta de entrevista da empresa Siemens

Describe inheritance in cpp, and give an example