#94 Remove Calendar#getInstance from the real world examples of Factory Method

This commit is contained in:
Ilkka Seppälä 2015-06-28 20:35:21 +03:00
parent f103ce965e
commit fa93d542e7

View File

@ -139,9 +139,6 @@ A programming idiom is a means of expressing a recurring construct in one or mor
* 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/8/docs/api/java/util/Calendar.html#getInstance%28%29)
## <a name="prototype">Prototype</a> [&#8593;](#list-of-design-patterns)
**Intent:** Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.