User Tools

Site Tools


clock

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
clock [2019/05/16 10:34] frchrisclock [2019/05/16 14:23] (current) frchris
Line 12: Line 12:
   - Make a subclass of your ''Clock'' class called ''FancyClock'' that keeps track of days and/or milliseconds.  The ''toString'' method needs to be adjusted as well.    - Make a subclass of your ''Clock'' class called ''FancyClock'' that keeps track of days and/or milliseconds.  The ''toString'' method needs to be adjusted as well. 
   - Make a subclass of your ''Clock'' class called ''AlarmClock'' The ''tick'' method needs to be enhanced so it checks to see if the alarm should be turned on. There would also need to be instance variables for the Alarm time and whether the alarm is ringing.  There would be also need to be methods so  The ''ClockTester'' class method ''paintComponent'' needs to be modified to indicate the Alarm is active.  Your ''AlarmClock'' class would need accessor methods so that the ClockTester can see if it is ringing and to turn off the ringing.   - Make a subclass of your ''Clock'' class called ''AlarmClock'' The ''tick'' method needs to be enhanced so it checks to see if the alarm should be turned on. There would also need to be instance variables for the Alarm time and whether the alarm is ringing.  There would be also need to be methods so  The ''ClockTester'' class method ''paintComponent'' needs to be modified to indicate the Alarm is active.  Your ''AlarmClock'' class would need accessor methods so that the ClockTester can see if it is ringing and to turn off the ringing.
 +  - Make a subclass of ''Clock'' called ''CountdownTimer'' which counts down to 00:00:00
    
clock.txt · Last modified: 2019/05/16 14:23 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki