Factory method pattern: Difference between revisions

Content deleted Content added
No edit summary
 
credit
Line 22:
* Some languages (such as Java) do not allow constructors to have different names (which may be necessary if you want to use the same method signature for two constructors)
* To allow the same instance to be reused instead of recreated each time it is needed (see FlyweightPattern)
 
----
== Credit ==
CategoryPattern | CategoryCreationalPatterns
The first draft is based on an excerpt from [[WikiWikiWeb]].