Head First Design Patterns: Observer Pattern
Head First Design Patterns: Observer Pattern
Observer Pattern
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