An open API service indexing awesome lists of open source software.

https://github.com/bertovdev/commandpattern


https://github.com/bertovdev/commandpattern

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Simple command pattern example

In this I implemented a simple use of Command Pattern which is Undo command. In this case I created the differents components of the pattern which are:

* Client
* Abstract command -> A simple interface with 2 methods
* Invoker -> The assigned to store and execute the commands
* Concrete Command - Inherid the abstract command and the ability to be executed.
* Receiver

https://github.com/BertovDev/CommandPattern/assets/62818001/14111c74-de18-431e-bf82-986cb3561e8b

https://www.canva.com/design/DAGCKfLMVSM/UHHkyTrlpk7rb2dc5qzHPQ/edit?utm_content=DAGCKfLMVSM&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton