00:01
In this question, let us see that what we have to do.
00:06
So here the implementation of operator function for the date class that compares two date objects and return a boolean equal value so that we have to give implementation for.
00:23
So we have to give a program for implementation of the operator function when this function we have to give for the date class that will compare two date objects.
00:44
So this is for the date class that will compare two date objects and it will also return a boolean value indicating whether the first date that is there it is larger than the second or not.
01:20
So this boolean value should give us the information that the first date is larger than the second date or not.
01:38
So this is what we have to show using this program.
01:45
So let us see the implementation of how we will write this program in a compiler.
01:51
So for that i'm using a basic compiler.
01:54
So the first thing we'll do here is include the necessary header files that are there.
02:03
So to implement the classes or whatever is needed.
02:11
So the after that is done we can just start by giving up defining a class.
02:23
Now here the class date class which you can see here is defined which contains private data members that is month, day and year representing the date.
02:38
Okay.
02:38
So now the class constructor we have to also define which is will be a public class.
02:47
So here as we can see that the date class is defined.
02:53
Now here the class constructor date gives us the month that is mm1 an integer that is 8 is equal to 1 and year is 2014 is defined.
03:07
So which initializes the date with default values of month 1 day 1 and year 2014.
03:15
So if no arguments are provided so we have to set the date also.
03:21
So that is why we will next use a set date function for that we'll use something like this.
03:31
So here as you can see this is used that is void set date.
03:38
Now here this function is defined as in as an inclined mutator method to set the values of the date.
03:49
Now next we have to do is show date function we have to display so that we have to do to display the date.
03:57
We will simply use the show date function in the same way we use the set date function.
04:04
So this is the show date function which tells us the which define if it is defined here to display the date in the format that is mmddyy using set fill set w from the map library...