Object composition
ncomposition: the process of constructing an object
using a component variable that references
the other object.
nUsing component
variables to put objects together is a
fundamental mechanism of object
design.
nWe build an object by “collecting” auxiliary objects that collaborate with the object and assist it in carrying out its responsibilities.