(Returning Error Indicators from Methods) Modify the set methods in class Time2 of Fig. to return appropriate error values if an attempt is made to set one of the instance variables hour, minute or second of an object of class Time2 to an invalid value. [Hint: Use boolean return types on each method.] Write a program that tests these new set methods and outputs error messages when incorrect values are supplied.
Fig. | Time 2 class with overloaded constructors.



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.