Add three constructors to the class DigitalClock created in the previous exercise. Give them the following capabilities: • Set the hour, minute, and second fields to given values • Set the color field...


Add three constructors to the class DigitalClock created in the previous exercise. Give them the following capabilities:


• Set the hour, minute, and second fields to given values


• Set the color field in addition to the previous fields to given values


• Set the dimensions of the digital clock in addition to the previous fields to given values


Create a test driver that allows the user to create either a default instance of a digital clock or an instance in which the user sets all of the fields of the digital clock.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here