Pregunta de entrevista de Siemens

Describe inheritance in cpp, and give an example