Command: Benefits and Caveats
Compare the advantages and disadvantages of the Command design pattern.
We'll cover the following...
Benefits of using the Command design pattern
The Command design pattern has the following benefits:
- The single responsibility principle is well maintained because the operation is fully separated from the objects it operates on.
- The open-closed principle is well maintained because the operation is added in a separate class without modifying any