Inventory Management
An example to explain COMMAND DESIGN PATTERN in its easiest simplest form.
Here, taking the example of an inventory management system , which requires multiple actions on a product.
The code demonstrate the SRP and Command Pattern usage.
On executing the program , you should see the product details displayed after performing ADD, DELETE and UPDATE action.
Components of COMMAND DESIGN PATTERN -
- Command Interface : Action
- Concrete class of command interface : AddProduct,UpdateProduct,DeleteProduct
- Command Invoker : ProductActionInvoker