Search

Home > Take Up Code > 28: Composition. The Has-A Relationship.
Podcast: Take Up Code
Episode:

28: Composition. The Has-A Relationship.

Category: Technology
Duration: 00:09:16
Publish Date: 2015-12-29 06:02:40
Description: Composition allows you to specify very different kinds of relationships between classes. This is sometimes also called containment. If you are building a racing game and have a car class and a wheel class, you would not want to say that cars are wheels but instead that cars have wheels. Proper use of composition will even allow you to substitute what kind of wheels your cars have. This can not only simplify your designs but make your code easier to test.
Total Play: 0

Some more Podcasts by Take Up Code

300+ Episodes
Take Up Code 30+     6