#ifndef _PRODUCE #define _PRODUCE #include #include #include using namespace std; #include "Grocery.h" class Produce :public Grocery { public: Produce(); //Default constructor Produce( ifstream& fin ); //Boundary constructor Produce( string Name, double Markup, int Cost, double Wt ); //Parametric constructor //Inherited Inspectors //string getName() //int getCost() //double getMarkup() double getWeight() const; //Inspector int getPrice() const; //Property = ceil(cost * markup * weight) virtual void Extract(ifstream& fin ); //Boundary input virtual void Insert (ostream& fout ); //Boundary output protected: virtual void Get( ifstream& fin); //Boundary input virtual void Put( ostream& fout); //Boundary output private: double weight; //units of pounds };//Grocery #endif