/* Filename: product2.h Author: Br. David Carlson Date: July 5, 1998 Revised: July 17, 2000 to use modern headers. Revised: July 27,2006 for use in a Windows Forms App example. This file sets up the StringMax constant, the ShortString typename, and most importantly, the Product class, with the fields and functions shown below. */ const int StringMax = 48; typedef char ShortString[StringMax]; class Product { protected: ShortString Name; int Year; double Price; public: Product(ShortString InitialName = "", int InitialYear = 0, double InitialPrice = 0.0); // constructor void GetName(ShortString ProductName) const; int GetYear(void) const; double GetPrice(void) const; void ChangePrice(double NewPrice); };