Pergunta de entrevista da empresa EDETEK

What are the advantages of composition over inheritance in object-oriented programming?