Goldman Sachs Interview Question

Explain inheritance