Composition

A class doesn't just need to contain methods and variables, it can also contain references to object. This is known as composition. Any time you want to turn an object…

Continue Reading Composition