<<< Command Sample     Index     Iterator >>>

51. Command Sample, cont.

  • Command Pattern Generic UML Design:

      Command Pattern UML Design

    Command Hierarchy
  • The main( ) function is the Invoker.

  • The standard output is the Receiver.

  • Command class is an interface to the concrete commands with abstract execute( ) operation.

  • The Ingredient and Step are concrete commands implementing the execute( ) operation.


<<< Command Sample     Index     Iterator >>>