Question: Also add comments to explain the code throughout. 6:25 All LTE k HW1.mp4 ... The purpose of this first assignment is to review sone concepts

Also add comments to explain the code throughout.
6:25 All LTE k HW1.mp4 ... The purpose of this first assignment is to review sone concepts froni Computer Science 1. Create a project called Assignment !. You will then write two classes: Clock.java - Write a class natted Clock that contains the following variables, methods, and constructors: (a) Private instance variables that store bours (0-23), minutes (0-59), and seconds (0-59). (b) A constructor that initializes the hours, minutes, and seconds to values specified by parameters, (c) A constructor that initializes the hours, minutes to values specified by parameters (defaulting the seconds to 0) (d) A constructor that initializes the hours to a value specified by a parameter (defaulting the minutes and seconds to 0) (c) A no-arg constructor that sets the hours, minutes, and seconds to 0. (f) A method that rescts the hours, minutes, and seconds to 0. (2) A method that advances the clock by one second. (h) Getters and sctters for hours, ininutes, and seconds. (1) A toString method that returns the hours, minutes, and seconds as a string of the forin "lah:nun:ss". TestClockjaya - A driver class that contains only a main method that testing all constructors and methods in the class, 0:24 -2:23 D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
