// demo program for comp 1672 // This is the header file time.h, for the class Time class Time { public: // as usual, functions are publically accessible Time(); // constructor, gets called when object is defined Time(int h, int m, int s); // alternate constructor, allows // for initialization of values void print(); // display time to the screen void set(int h, int m, int s); // change time to th values given void add_hours(int hours); // increment hours void add_minutes(int min); // increment minutes void add_seconds(int sec); // increment seconds private: // as usual, data members are private int hour; int min; int sec; };