Question: answer Instructions Your Solution C++ // You are to include the following in this submission // Default constructor Class Definition for InventoryItem // Public class

answer

answer Instructions Your Solution C++ // You are
Instructions Your Solution C++ // You are to include the following in this submission // Default constructor Class Definition for InventoryItem // Public class functions (mutators & accessors) 4 // SetName() & GetName() This class represents an inventory item. It has the following members: 5 // SetPrice() & GetPrice() 6 // SetQuantity() & GetQuantity() itemName : a private string member initialized in the default constructor to 7 / / Private data members "none". 8 // string itemName - Initialized in default constructor to "none" 9 itemPrice : a private integer member initialized in the default constructor to 0. // int itemPrice - Initialized in defalt constructor to 0 10 // int itemQuantity - Initialized in default constructor to 0 itemQuantity : a private integer member initialized in the default constructor 11 17 to 0 12 // Your code below SetName () : a public member function that sets the itemName member variable. GetName() : a public member function that returns the itemName member variable. SetPrice() : a public member function that sets the itemPrice member variable. GetPrice() : a public member function that returns the itemPrice member variable. SetQuantity() : a public member function that sets the itemQuantity member variable. GetQuantity( ) : a public member function that returns the itemQuantity member variable. The default constructor is also included. Submit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Business Writing Questions!