[C++] Time Addition

#include <iostream>
using namespace std;

class time
{
private:
    int hr, min, sec;
public:
    time():hr(0), min(0), sec(0)
    {
    }
    time(int h, int m, int s) :hr(h), min(m), sec(s)
    {
    }
    void add_time(time t1, time t2)
    {
        hr = t1.hr + t2.hr;
        min = t1.min + t2.min;
        sec = t1.sec + t2.sec;
        if (sec >= 60)
        {
            sec = sec - 60;
            min = min + 1;
        }
        if (min >= 60)
        {
            min = min - 60;
            hr = hr + 1;
        }
    }
    void display() const
    {
        cout << "The Time Is: " << hr << ":" << min << ":" << sec << endl;
    }
};
int main()
{
    const time t1(3, 15, 20), t2(6, 44, 40);
    time t3;
    t3.add_time(t1, t2);
    t3.display();
    return 0;
}