Not. A factory method is a factory that does not require any state. The factory class is the class itself β it has state and methods that change that state. At the end, you call the .create() method, and it uses its current state to create a new object of a different type.
A factory abstract is a completely different thing β there you have several factory implementations of the same abstract concept. An example of wikipedia is e GUIFactory - it is an abstract factory that has two implementations: WinFactory and OSXFactory . The client code does not know which implementation it uses - it just knows that the factory creates Button instances. This allows you to write the same code regardless of the OS.
Bozho
source share