Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 10
    "whenever someone tells you something and is unable or unwilling to provide a rationale for their statement, there is a good chance they are unqualified to make the statement at all" QFT Commented Apr 30, 2009 at 13:44
  • 1
    Exactly what he is doing? I don't see any subclasses decide here, just subclasses returned. Commented Dec 7, 2009 at 12:02
  • Maybe we're missing the point here, but I also don't see a subclassed interface. Commented Feb 2, 2010 at 11:16
  • 1
    In multiple answers to this question I see reference to wikipedia - please, also note that the article linked has a discussion en.wikipedia.org/wiki/… where people (quite correctly!) point out that most of examples in article do illustrate Simple Factory (or static factory methods, creation methods etc), but not Factory Method Pattern described by GoF. The main point has been underlined in several answers: there MUST be deference present, to consider pattern implementation complying to GoF's description. Commented Nov 8, 2010 at 1:54