Goldman Sachs interview question

Explain inheritance