Adding the Ability to Edit a Record
Figure 11.29 is the latest, greatest version of the interface for the HomeItem class.
Figure 11.29. The latest version of the Homeitem class interface (code\hmit5.h)
// hmit5.h class HomeItem { friend std::ostream& operator << (std::ostream& os, const HomeItem& Item); friend std::istream& operator >> (std::istream& is, HomeItem& Item); public: HomeItem(); HomeItem(const HomeItem& Item); HomeItem& operator = (const HomeItem& Item); virtual ~HomeItem(); // Basic: Art objects, furniture, jewelry, etc. HomeItem(std::string Name, double PurchasePrice, long PurchaseDate, std::string Description, std::string Category); // Music: CDs, LPs, cassettes, etc. HomeItem(std::string Name, double PurchasePrice, long PurchaseDate, ... |
Get C++: A Dialog Programming with the C++ Standard Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.