Lecture 27 (Tychonievich) - Classes part 3

Lecture Date: Monday, March 23

A case study in building an AlarmClock.

Alarm Clock
- currentTime : Time
- alarmTime : Time
- alarmOn : boolean
- show12HourForm : boolean
+ setTime(int, int, int) : void
+ setAlarmTime(int, int, int) : void
+ turnAlarmOn() : void
+ turnAlarmOff() : void
+ toString() : String
+ tick() : void
+ run() : void // will never return
Time
- hour : int
- minute : int
- second : int
+ set(int, int, int) : void
// + add(int, int, int) : void
// + add(Time) : void
+ add1Second(): void
+ displayable(is24: boolean) : String

From Lecture