(Time Class Modification)It would be perfectly reasonable for the Time class of Figs. 1– 2 to represent the time internally as the number of seconds since midnight rather than the three integer values hour, minute and second. Clients could use the same public methods and get the same results. Modify the Time class of Fig. 1 to implement the time as the number of seconds since midnight and show that there is no visible change in functionality to the clients of the class. [Note: This exercise nicely demonstrates the virtues of implementation hiding.]
Figure 1 Time class modified to enable cascaded member-function calls.


Figure 2 Time class member-function definitions modified to enable cascaded memberfunction calls.


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.