Your manager has outlined the following requirements for imp…
Your manager has outlined the following requirements for implementing a method to manage inventory updates in the store’s system. Assuming the attributes for the ProductClass have already been created as described in the previous question, which of the following methods fulfills the criteria for updating or mutating the inventory of a product? Criteria: The method should allow for a parameter capturing the number of items the user wishes to purchase. The method should update the inventory’s “_onHand” attribute mentioned in the previous question. You don’t need to worry about negative inventory. If the customer orders more than we have on hand, we will place an order with our supplier and fill the order anyway. Which of the following meets the above criteria?
Read Details