From 6bab9edf7583b72b1665abeb724aca316f9e208a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Wed, 25 Feb 2015 15:47:24 +0200 Subject: [PATCH] Added real world example for Factory Method. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7075d0186..1c33d4c5a 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,9 @@ * a class wants its subclasses to specify the objects it creates * classes delegate responsibility to one of several helper subclasses, and you want to localize the knowledge of which helper subclass is the delegate +**Real world examples:** +* [java.util.Calendar#getInstance()](http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html#getInstance%28%29) + ## Prototype [↑](#list-of-design-patterns) **Intent:** Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.