diff --git a/src/patterns/behavioral/command.md b/src/patterns/behavioral/command.md index b463797..6d10227 100644 --- a/src/patterns/behavioral/command.md +++ b/src/patterns/behavioral/command.md @@ -2,14 +2,6 @@ The Command Design Pattern is a behavioral design pattern that turns a request into a stand-alone object that contains all information about the request. This transformation allows for parameterization of methods with different requests, queuing of requests, and logging of the requests. It also provides support for undoable operations.
-### Components of Command Pattern - -1. **Command**: Declares an interface for executing an operation. -2. **ConcreteCommand**: Implements the Command interface and defines a binding between a Receiver object and an action. -3. **Client**: Creates a ConcreteCommand object and sets its receiver. -4. **Invoker**: Asks the command to carry out the request. -5. **Receiver**: Knows how to perform the operations associated with carrying out a request. - Here is an example of the Command Design Pattern: ```rust