Objective Views
:
Chapter 12 Commands
:
Target Model
Target Model
A command keeps a pointer to the model to which it pertains. It uses this pointer to get access to the methods that enable it to complete its action. For example, when a move command is executed, it calls the method
MoveComponents()
in
CODModel
.