Question

Q1: There exists a data type Date with member function Increment that increments the current Date object by one. The ++ operator is being overloaded to postincrement an object of type Date. Select the correct implementation:
a. Date Date::operator++( int )
{
Date temp = *this;
Increment();
return *temp;
}
b. Date Date::operator++( int )
{
Increment();
Date temp = *this;
return temp;
}
c. Date Date::operator++( int )
{
Date temp = *this;
return this;
temp.Increment();
}
d. Date Date::operator++( int )
{
Date temp = *this;
Increment();
return temp;
}

Answer

This answer is hidden. It contains 67 characters.