Question: JAVA CODE Please create the uml diagram and provide the code. Also, please explain what you did, thanks.. The Inventory Class The Inventory class will
JAVA CODE Please create the uml diagram and provide the code. Also, please explain what you did, thanks..

The Inventory Class The Inventory class will track the state of the inventory of your system. It should keep track of the type and quantity of each Product, as well as provide methods to access and modify this information. The following functionalities should be available in any given Inventory object: Get the amount of stock for a given Product ID (Note: it is possible the Product does not exist in the Inventory!). Add a specified amount of stock for a given Product to the inventory (Note: new Products can be added!). Remove a specified amount of stock for a given Product ID from the inventory (Note: you cannot have negative stock, and you cannot delete Products from the Inventory; if a Product's stock reaches 0, leave it.). Get information on a Product given a Product ID. Initialize the Inventory; set the contents of the Inventory to some default values upon object creation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
