Question d’entretien chez Siemens

How does inheritance work in programming?