Encapsulate a command request as an object
  • Encapsulate a request as an object, ‚Äč

    • thereby letting you parameterize clients with different requests, queue or log requests, and

    • support undoable operations.

Command Design Pattern