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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here