Pregunta de entrevista de OpenTable

What is the difference between inheritance and composition?