Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 681 Bytes

File metadata and controls

16 lines (10 loc) · 681 Bytes

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 -

  1. Command Interface : Action
  2. Concrete class of command interface : AddProduct,UpdateProduct,DeleteProduct
  3. Command Invoker : ProductActionInvoker

This example also covers some unit test classes.