Solved

factory design pattern vs abstract factoy design pattern

Posted on 2016-08-21
2
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Assisted Solution

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

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

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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Starting up a Project

695 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