OpenTable interview question

Describe how inheritance works in object-oriented programming.