Question: Clock class already written just need the TestClock class We now need to write a client program named Testclock that contains a main method that

Clock class already written just need the TestClock class
We now need to write a client program named Testclock that contains a main method that we can use to test our class. In this client program, declare a Clock object named dvr. It will be constructed using the default constructor. Next, prompt the user to input a specified hours, minutes, and seconds. Reset your dvr object to this time using the reset method, print it out, advance it by one second, and then reprint. Compile and run. Here's a sample test case with the user input shown in boldface. Note: if you have any errors in Clock.java, return to this file, make your changes, and this file will be automatically recompiled for you when you recompile Testclock.java. What time would you like to set your DVR to? Hours = 23 Minutes = 59 Seconds = 59 The time is now 23:59:59 Advancing the time! The time is now 00:00:00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
