This class, specifically the lines in bold are confusing me. Why do we have to mention Time twice? What would happen if I deleted the first bold line?
Time.h
class Time {
public:
Time(); // this is "the first bold line"
Time(int h, int m, int s); // this is another "lines in bold"
void set(int h, int m, int s);
void print();
int allSeconds();
void difference(Time t);
int getHour();
int getMinute();
int getSecond();
void setHour(int h);
void setMinute(int m);
void setSecond(int s);
private:
int hour, minute, second;
};