Pergunta de entrevista da empresa Indeed

What is the difference between Composition and Inheritance? (OOP)