I'm foreigner. I'm not good at English. Can someone explain somewhere in this code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Time operator++( int )
{
// save the orignal value
Time T(hours, minutes); // I don't know why there is a constructor in here
// increment this object
++minutes;
if(minutes >= 60)
{
++hours;
minutes -= 60;
}
// return old original value
return T;
}
And in class Time, I have assignment operator overloading