class watch { int hour, minute, second; public: void set( int hr, int min, int sec); void tick( ); void display( ); };
|
|
| | Class name: | watch |
|
| | Fields: | hours, minutes, seconds |
|
| | Methods: | advance the time by one second set the watch to a requested time display the watch time |
|
| | Constructors: | default mechanisms |
|
| | |
|