Talk:Factory method pattern
Appearance
This article is wrong (see for example the discussion of this pattern in the Gang of Four book or the article at the Portland Pattern Repository).
It is true that the term Factory method is often used to refer to any method (static, polymorphic or otherwise) whose main purpose is to create objects, but the Factory Method pattern (as described by the Gang of Four) is specifically about the case where a superclass defines a factory method which subclasses can override to create objects of appropriate types.
A good example of the Factory Method pattern can be found in ADO.NET: IDbCommand.CreateParameter - Each class that implements IDbCommand creates parameter objects of the correct type for that command object. --Petur