Question: C++ - Finish the provided code C+t: operator overloading and friend functions Operator functions for the Data class provided +Prefix increment operator that increments the
C++ - Finish the provided code 






C+t: operator overloading and friend functions Operator functions for the Data class provided +Prefix increment operator that increments the object's day member - - Postfix decrement operator that decrements the object's day member >cin's stream extraction operator that prompts the user for a date to be stored in a Date object >Greater than relational operator that returns true if a Date object d1 is greater than another object d2 and false otherwise - Subtraction operator. If one Date object is subtracted from another Date object, this operator should return the number of days between the two classes. For example, if April 10, 2014 is subtracted from April 18, 2014, the result will be 8 Functions should detect the following conditions and handle them accordingly: When a date is set to the last day of the month and incremented, it should become the first day of the following month When a date is set to December 31 and incremented, it should become January 1 of the following year When a day is set to the first day of the month and decremented, it should become the last day of the previous month When a date is set to January 1 and decremented, it should become December 31 of the previous year Complete the following program based on the given comments (SHOWN IN RED) Some of the functions are already implemented #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
