(Modifying the Internal Data Representation of a Class) It would be perfectly reasonable for the Time2 class of Fig 8.5 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 Time2 class of Fig 8.5 to implement the Time2 class as the number of seconds since midnight and show that no change is visible to the clents of the class. [In fact, you can use the original Time2Test class with your modified Time2 class.]

This problem is not easy. If you need some help, click here. The solution will be available here and here after the end of next week’s class.