Operators, Delegates, and Events
- slide 18 : 20
An Observer Example
We show the concrete programs that implement observer in the weather center scenario.
A WeatherCenter (subject) and TemperatureWatcher (observer).
Application of the WeatherCenter and TemperatureWatcher.
Output of the WeatherCenter and TemperatureWatcher application.
It would be useful if a number of different classes could act as observers
Observer