Command Pattern

Command Patterns encapsulate a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.

It enables us to decouple the operation being performed from the invoker and the client.

ComponentRole
Receiveraction()
Commandexecute() & undo()
InvokersetCommand()
ClientcreateCommand()
Home | © 2024 Last Updated: Mar 03, 2024
Buy Me A Coffee