// CIS 235 Lecture 09 // Inheritance // Base Class invent ( Called supperclass in Java ) #ifndef INV_H #define INV_H #include using std::ostream; #include using namespace::std; class invent { public: invent( const invent &); // copy constructor invent( void); // default constructor invent( long c, long n, double cst, double p); ~invent(void); invent & setPrice(double); invent & setNumber(long); invent & setCost(double); invent & setCode(long); double getPrice(void) const; double getCost(void) const; long getNumber(void) const; long getCode(void) const; static string identify(void); // will return the class name const invent & print(ostream &) const; invent & kinput(void); private: double price; // retail price per unit double cost; // wholesale cost per unit long code; // product id number long number; // number in stock }; #endif