(Returning Error Indicators from Class Time’s set Functions) Modify the set functions in the Time class of Figs 1-2. to return appropriate error values if an attempt is made to set a data member of an object of class Time to an invalid value. Write a program that tests your new version of class Time. Display error messages when set functions return error values.
Fig 1. Time class containing a constructor with default arguments.

Fig 2. Member-function definitions for class Time.


We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.