Here, taking the example of an inventory management system , which requires multiple actions on a product.
On executing the program , you should see the product details displayed after performing ADD, DELETE and UPDATE action.
- Command Interface : Action
- Concrete class of command interface : AddProduct,UpdateProduct,DeleteProduct
- Command Invoker : ProductActionInvoker