Domanda di colloquio di OpenTable

Describe how inheritance works in object-oriented programming.