Lecture overview -- Keyboard shortcut: 'u'  Previous page: Motivation - Example -- Keyboard shortcut: 'p'  Next page: An Observer Example -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Operators, Delegates, and Events - slide 17 : 20

The observer design pattern

The Observer is often used to ensure a loose coupling between an application and its user interface

In general, Observer can be used whenever a set of observer objects need to be informed about state changes in a subject object

subject-only.cs
Template of the Subject class.
observer-only.cs
A templates of the Observer class.
client.cs
Application of the Subject and Observer classes.