COMMAND AND ACTIVE OBJECT
This chapter dealt with the command structure where you design a class structure using a method but no variables. They used the function do as an interface where the do function runs different commands underneath it. Tis allows the user interface to be alot simpler.
I assume finctions that inherit the interface such as RelayOn, MotorOn, ClutchOn, RelayOn, MotorOff, ClutchOff, now call the dointerface function but the drivers for the do don't have to care who called the function.
Seems like the command functions is great for drivers and varied user interfaces using the same interface. The driver can also inherit different variables thus making the command concept a very versitile part of object oriented programming.
TEMPLATE ETHOD & STRATEGY: INHERITANCE VS DELEGATION
FACADE AND MEDIATOR