Solved

factory design pattern vs abstract factoy design pattern

Posted on 2016-08-21
2
114 Views
Last Modified: 2016-08-22
Hi,

I would like to know what are differences between factory design pattern vs abstract factoy design pattern.

When to use which one. Advantages, disadvantages, practical uses of each. Please advise
0
Comment
Question by:gudii9
2 Comments
 
LVL 35

Assisted Solution

by:mccarl
mccarl earned 250 total points
ID: 41764799
Nothing.

They are very similar names for identical concepts.
0
 
LVL 33

Accepted Solution

by:
ste5an earned 250 total points
ID: 41764891
Well, first of all: Use the correct names, cause this gives you already the necessary hint

It's Factory Method and Abstract Factory.

In short: Factory method is responsible to build one product (object). Abstract factory for building multiple products (objects). Factory method defines how the creation is modeled. Thus it is a description of it internals. Abstract factory focuses only on the visible interface. It's not about the internals. So abstract factory can use for it internals factory pattern. Which makes these often a little bit confusing. But it has not to use factory method. Builder would be an alternative.
2

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question