Question d’entretien chez Siemens

Describe inheritance in cpp, and give an example