Skip to content

Commit d94cb0e

Browse files
committed
Added real world example for Memento.
1 parent 87672c6 commit d94cb0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@
292292
* a snapshot of an object's state must be saved so that it can be restored to that state later, and
293293
* a direct interface to obtaining the state would expose implementation details and break the object's encapsulation
294294

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

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

0 commit comments

Comments
 (0)