Take Up Code
28: Composition. The Has-A Relationship.
09:16 | Dec 29th, 2015
Composition allows you to specify very different kinds of relationships between classes. This is sometimes also called containment. If you’re building a racing game and have a car class and a wheel class, you wouldn’t want to say that cars are wheels...Show More