Question d’entretien chez OpenTable

Describe how inheritance works in object-oriented programming.