#94 Remove Calendar#getInstance from the real world examples of Factory Method
This commit is contained in:
parent
f103ce965e
commit
fa93d542e7
@ -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> [↑](#list-of-design-patterns)
|
||||
**Intent:** Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user