Solved

factory design pattern vs abstract factoy design pattern

Posted on 2016-08-21
2
82 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
Comment Utility
Nothing.

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

Accepted Solution

by:
Stefan Hoffmann earned 250 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now