//DISPLAY 15.9 Interface for the Base Class Sale //This is the header file sale.h. //This is the interface for the class Sale. //Sale is a class for simple sales. #ifndef SALE_H #define SALE_H #include using namespace std; namespace salesavitch { class Sale { public: Sale(); Sale(double the_price); virtual double bill() const; double savings(const Sale& other) const; //Returns the savings if you buy other instead of the calling object. protected: double price; }; bool operator < (const Sale& first, const Sale& second); //Compares two sales to see which is larger. }//salesavitch #endif // SALE_H