August 2002
Beginner
1122 pages
22h 1m
English
Now that we have an overview of the structure of the classes we're designing, Figure 10.23 shows the interfaces for the worker classes UndatedStockItem and DatedStockItem.
class UndatedStockItem : public StockItem { public: UndatedStockItem(); UndatedStockItem(std::string Name, short InStock, short Price, short MinimumStock, short ReorderQuantity, std::string Distributor, std::string UPC); virtual bool CheckUPC(std::string UPC); virtual void DeductSaleFromInventory(short QuantitySold); virtual short GetInventory(); virtual std::string GetName(); virtual void Reorder(std::ostream& ... |
Read now
Unlock full access