I hear (and read on this site) a lot about \"favour composition over inheritance\".
But what is Compositon? I understand inheritance from the point of Person : Mamma
Composition is simply the parts that make up the whole. A car has wheels, an engine, and seats. Inheritance is a "is a " relationship. Composition is a "has a" relationship.