Pergunta de entrevista da empresa Indeed

What's the difference between Composition and Inheritance