// ENGR 131, Monday 3:30 Recitation (Amanda Rohn) // HW #12 - Inventory Keeper // Solution // File: inventory.h // Contains declaration of the class Inventory, which holds inventory data for a product #ifndef INVENTORY_H #define INVENTORY_H #include using std::string; class Inventory { private: int idnum; string prodname; double unitprice; int instock; Inventory(); // the default constructor is private so it can't be used public: // constructor Inventory(int id, string name, double price, int stocked = 0); // information functions int ProdNum(); string Name(); double Price(); int NumStocked(); // modification functions void SetStocked(int numstocked); }; #endif