21 lines
312 B
C++
21 lines
312 B
C++
class Time {
|
|
private:
|
|
int hour;
|
|
int minute;
|
|
int second;
|
|
|
|
public:
|
|
Time();
|
|
Time(int h, int m, int s);
|
|
|
|
int getHour() const;
|
|
int getMinute() const;
|
|
int getSecond() const;
|
|
|
|
void setHour(int h);
|
|
void setMinute(int m);
|
|
void setSecond(int s);
|
|
|
|
void PrintAMPM() const;
|
|
};
|