Skip to content

Commit

Permalink
Added real world example for Memento.
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed Feb 25, 2015
1 parent 87672c6 commit d94cb0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@
* a snapshot of an object's state must be saved so that it can be restored to that state later, and
* a direct interface to obtaining the state would expose implementation details and break the object's encapsulation

**Real world examples:**
* [java.util.Date](http://docs.oracle.com/javase/6/docs/api/java/util/Date.html)

## <a name="observer">Observer</a> [&#8593;](#list-of-design-patterns)
**Intent:** Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Expand Down

0 comments on commit d94cb0e

Please sign in to comment.