// Declaration of the Time class. // Member functions are defined in time2.cpp // preprocessor directives that // prevent multiple inclusions of header file #ifndef TIME2_H #define TIME2_H // Time abstract data type definition class Time { public: Time( int = 0, int = 0, int = 0 ); // default constructor void setTime( int, int, int ); // set hour, minute, second void printMilitary(); // print military time format void printStandard(); // print standard time format private: int hour; // 0 - 23 int minute; // 0 - 59 int second; // 0 - 59 }; #endif