Dofactory.com
Dofactory.com
 Back to list
Views:   9.4K
Replies:  1
Archived

Abstract factory vs Factory Pattern

How does one differentiate Abstract Factory against Factory Method?
Thanks in advance.
Prasanth M, Aug 09, 2011
Reply 1
Abstract Factory is used to create a set of abstractions. 

You use the Factory Method to create and hide the creation of one object of a set of classes that implement the same interface.

In very simple terms: think about Abstract Factory like a set of several Factory Methods.

You use an Abstract Factory for something like this:

Software Abstraction Layer
http://msdn.microsoft.com/en-us/library/cc304370.aspx


Danut Prisacau, Aug 19, 2011
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.