Domanda di colloquio di Cambly

What was the difference between composition and inheritance?