Lecture overview -- Keyboard shortcut: 'u'  Previous page: The observer design pattern -- Keyboard shortcut: 'p'  Next page: Observer with Delegates and Events -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 43 : 45
Object-oriented Programming in C#
Data Access and Operations
An Observer Example

We show the concrete programs that implement observer in the weather center scenario.

/user/normark/oop-csharp-1/sources/c-sharp/patterns/observer/weather-info/observer.csA WeatherCenter (subject) and TemperatureWatcher (observer).


/user/normark/oop-csharp-1/sources/c-sharp/patterns/observer/weather-info/client.csApplication of the WeatherCenter and TemperatureWatcher.


/user/normark/oop-csharp-1/sources/c-sharp/patterns/observer/weather-info/outputOutput of the WeatherCenter and TemperatureWatcher application.


It would be useful if a number of different classes could act as observers