// file: myprog.h // // system include files // #include #include // define a simple class // class Toaster { protected: // define some data // long len_d = (long)0; long width_d = (long)0; float weight_d = (float)0.0; // define some simple functions // public: long get_len() { return len_d; } long get_width() { return width_d; } float get_weight() { return weight_d; } // define some functions // bool display(FILE* fp, char*); bool set_values(long len, long width, float weight); // demonstrate an overloaded function // // bool compare(Toaster arg1); // bool compare(Toaster* arg1); // bool compare(Toaster& arg1); private: // end of class };