public GMTConsoleClock(ClockSubject clockSubject) { // register with the clock subject for updates this.clockSubject = clockSubject; clockSubject.Attach(this); }
public SecondsCountingConsoleClock(ClockSubject clockSubject) { // register with the clock subject for updates this.clockSubject = clockSubject; clockSubject.Attach(this); }