help with java
Write a program to implement a simple 24 hour clock class Clock.java following the given instructions:
- The clock class will have 3 private fields: hour, minutes, and seconds (all will be integers). The value of hours will range from 0-24, minutes: 0-60 and seconds: 0-60.
- The default constructor will reset all the fields to 0.
- The other constructor Clock (hrs: int, mins: int, secs: int) will take values for all 3 fields and set the clock to those values (given that the all the 3 values are valid). If the values supplied are invalid, the all values are set to 0.
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


