| 
  | 
| The observer design pattern | 
![]()  |  The subject (weather service object) to the left and its three observers (weather watcher objects) to the right.
     The Weather Service Object get its information various sensors.  | 
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  |