Head First Design Patterns
Observer Pattern
Observer Pattern Defined
Class Diagram Observer Pattern
Power of loose coupling
The only thing that the subject knows about an observer is that it
implements an interface
We can add new observers at any time
We never need to modify the subject too add new type of
observers
We can reuse subject or observers independently of each other
Change to either the subject or an observer will not affext the
other
Weather data observer pattern
Weather data interface
Implementing subject interface