// Time.h #ifndef TIME_H #define TIME_H class Time { public: Time( int = 0, int = 0, int = 0 ); // costruttore con // valori di default // metodi set void setTime( int, int, int ); void setHour( int ); void setMinute( int ); void setSecond( int ); // metodi get int getHour() const; int getMinute() const; int getSecond() const; // metodi di stampa void printMilitary() const; // stampa formato militare void printStandard(); // stampa formato standard private: int hour; // 0 - 23 int minute; // 0 - 59 int second; // 0 - 59 }; #endif