Design Patterns, Behavioural Design, Java, Software Development.
Command Pattern The Command Pattern consists of four main components: Command: Defines an interface for executing an operation. ConcreteCommand: Implements the Command interface and encapsulates the receiver object and the action to be performed. Invoker: Asks the command to carry out the request.