Pergunta de entrevista da empresa OpenTable

What is the difference between inheritance and composition?