3.2 Composition
Composition is different from inheritance in some technical aspects:
- The aggregate class can have one, multiple, an array of, a pointer to, or a reference of the component class.
- Unless the aggregate class is a friend of the component class, it only has access to the public members of the
component class.
- Access to the component member is done by explicitly using the name of the member.