Question: Overloaded Operators- Basic Date Class Create a new project named Assign08-OverloadedOperators. The driver program can be copied from OverloadedOperators-DateDriver.txt, and the Date class header file

 Overloaded Operators- Basic Date Class Create a new project named Assign08-OverloadedOperators.

Overloaded Operators- Basic Date Class Create a new project named Assign08-OverloadedOperators. The driver program can be copied from OverloadedOperators-DateDriver.txt, and the Date class header file can be found in OverloadedOperators DateHeader.txt. Both files are located in C:VCProjectsoop. Add these six overloaded operators to the Date class Date.qp implementation file: == ! along with the insertion and extraction operators and > (istream&, Date&); I/ overloaded extraction operator friend to Date class friend ostream& operator(const Date&) const Ioverloaded greater than operator bool operator (const Date&) const; // overloaded less than or equal operator bool operator (const Date&) const; overloaded greater than or equal operator-> private: // private member functions and data members void setDefaultDate(); // set default date 1/01/1970 int month; erload CAVCProjectsOOPAssign08-OverloadedOperators DebugiOper 12/31/2015 12/31/2815 is TRUE 12/31/2015 12/31/2015 is PLSE int day; int year; di Use the driver program to display the result of each comparison 1/01/2016 1/01/2016 i TRUE 1/01/20161/81/2816 is FALSE 12/31/2015 3/03/201? 3/82/201 is TRUE 3/81/2017 is FALSE 2/28/20173/B1/2817 is TRUE 3/82/20173/83/2817 is FALSE The overloaded insertion operator > allows direct input of month day year values into a cin input stream with space separators. dd yyyy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!