Command
The command pattern is used to encapsulate requests to objects without having to know anything about request or receiver of the requests. For example, suppose you were making a GUI toolkit that allows applications to create things like buttons, menus etc.
Quick Reference
|---|---| |Pattern Name | Command | |Other Names | Action, Transaction | |Classification | Object Behavioral | |Intent | Encapsulates a request. |