Define a bose closs to represent a Clock. The class should define the tollawing ottributes and methods e The Clock requires instance wariables tor hours, minutes, and seconds Defoult no-argument constructor A porometerized constructor that sets the instance variables . Accessors and mutotors for al instance variables- mutator metheds should verify that the volid integers for hours is in the range ot 0-24, valid ntegers for minutes is in the range 0-59, and valid integers for seconds is inthe range of 0-59 Override the method publie String toStrinad to display the current time in the format hrs:mins:sec . Override the method public boolean equals(Clock e) e Write a test driver to show how you can use the Clock class, income toString and equas methods.

Using Java

Define a bose closs to represent a Clock. The class should define the tollawing ottributes and methods e The Clock requires instance wariables tor hours, minutes, and seconds Defoult no-argument constructor A porometerized constructor that sets the instance variables . Accessors and mutotors for al instance variables- mutator metheds should verify that the volid integers for hours is in the range ot 0-24, valid ntegers for minutes is in the range 0-59, and valid integers for seconds is inthe range of 0-59 Override the method publie String toStrinad to display the current time in the format hrs:mins:sec . Override the method public boolean equals(Clock e) e Write a test driver to show how you can use the Clock class, income toString and equa’s methods. Show transcribed image text