This week's book giveaway is in the
We're giving away four copies of
and have John Sonmez on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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
WA #1.....word association
design pattern for Strings to Objects
What is the need for a pattern like factory Pattern?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014