Please provide me solution code of this programme.
A C++ program which contains a class named Time having three data members.
The class must have
• A default and parameterized constructor
• show() method to display the time in proper format like HH:MM:SS on the screen
• get() method to get time from user
• Overloaded Plus (+) and Minus (-) operators
• A destructor
You will overload + and - operator for this class.
In main program make 3 objects of the Time class time1, time2 and time3 and call the get() functions for time1 and time2 then perform time3 = tim1+time2 and then you will display time3 using its show() function.
Note1: While Adding the time keep in mind do not just add the hours into hours and minutes into minutes and seconds in seconds , e.g
11: 70: 35
Will not be correct, instead your code should add times like, Note that as number of minutes have increased 60, hour have been increased.
12: 10: 35
I need source code only.