/* Filename: product2.h Author: Br. David Carlson Date: March 18, 2017 This file sets up the Product class and ProductPtrType. Note that the class Product uses a string object for the Name field. */ #pragma once #include #include using namespace std; class Product { private: string Name; int Year; double Price; public: Product(string InitialName = "NO_NAME_GIVEN", int InitialYear = 0, double InitialPrice = 0); ~Product(void); void Print(void) const; void SetName(string NameValue); void SetYear(int YearValue); void SetPrice(double PriceValue); string GetName(void) const; int GetYear(void) const; double GetPrice(void) const; }; typedef Product * ProductPtrType;