I believe I have a good understanding of the difference between Abstract Factory and Factory Method, but I'd like to see what others think.
When I say Abstract I am referring to DoFactory.GangOfFour.Abstract.Structural - Abstract Factory
When I say Factory I am referring to DoFactory.GangOfFour.Factory.Structural - Factory Method
First, both of these patters are are very close siblings of each other, more like faternal twins. From what I see, Abstract can almost always be used in place of Factory. Abstract typically implements Factory. The difference is basically another level of abstraction at the Client end - Abstract implements this additional level of abstraction.
The Client in Abstract is AnimalWorld. The Client in Factory is simply MainApp.
From within both of these Clients, the factory is implemented in these lines:
↧