Added real world example for Observer.
This commit is contained in:
parent
d94cb0e243
commit
420491429f
@ -310,6 +310,8 @@
|
||||
|
||||
* changing in one object leads to a change in other objects
|
||||
|
||||
**Real world examples:**
|
||||
* [java.util.Observer](http://docs.oracle.com/javase/6/docs/api/java/util/Observer.html)
|
||||
|
||||
## <a name="state">State</a> [↑](#list-of-design-patterns)
|
||||
**Intent:** Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
|
||||
|
Loading…
x
Reference in New Issue
Block a user