TODO: ADD MORE
- adding functionality from a class by incorporating an instance of that class in a class you are creating. The example creates a
robot
by instantiating acompass
and assigning it to theself
.compass attribute ofrobot
. robot-simulator