hi friend,
How to understand the factory model and the difference between factory method. In addition, the abstract factory class What is the role model in the factory.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sunny SharmaRank #223 · 11.1K reputationPosted Jun 20, 2013, 1:50 AM EDT
Refer to this post, it surely answers your question:
http://corey.quickshiftconsulting.com/1/post/2009/5/first-post.html
Mark it as answer if it helped.
Cheers!
Ken HRank #2,315 · 610 reputationPosted Jun 21, 2013, 2:21 AM EDT
Cannot open links.
thanks.
Sunny SharmaRank #223 · 11.1K reputationPosted Jun 21, 2013, 2:39 AM EDT
So what's the difference between a simple factory, a factory method design pattern, and an abstract factory?
Step One: you call a method in the factory. Here it makes sense to use a static method. The parameters for your call tell the factory which class to create.
Step Two: the factory is capable of producing multiple types. This is where the "family of related products" comes into play. The objects which can be created still have a parent class or interface that the client knows about, but the key point is there is more than one type of parent.