A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
OO, Patterns, UML and Refactoring
abstactfactory vs factory method
Joined: Mar 15, 2008
Feb 21, 2012 04:29:25
I just completed theory about abstract factory and factory method.could any one explain the difference between these two clearly?
Joined: Apr 06, 2010
Feb 23, 2012 03:08:33
There's an example in a
that might help. The main difference is that with the factory
you have one class object producing instances of multiple classes. With the abstract factory pattern you have multiple (related) factories.
I agree. Here's the link:
subject: abstactfactory vs factory method
design pattern for Strings to Objects
What is the need for a pattern like factory Pattern?
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014