previous | start | next

The COMMAND Pattern

Solution

  1. Define a command interface type with a method to execute the command.
  2. Supply methods in the command interface type to manipulate the state of command objects.
  3. Each concrete command class implements the command interface type.
  4. To invoke the command, call the execute method.

previous | start | next