From d94cb0e24384283cae22db2104ebb53f5cddfbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Wed, 25 Feb 2015 21:04:31 +0200 Subject: [PATCH] Added real world example for Memento. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 752a4ec4f..eaf1dfc3f 100644 --- a/README.md +++ b/README.md @@ -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) ## Observer [↑](#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.