Aristocrat interview question

Diffrence between Inheritance and composition