Solved

factory design pattern vs abstract factoy design pattern

Posted on 2016-08-21
2
108 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
map related example 6 47
xampp tool 12 48
Message not shown 5 49
Problem to refer to value 8 45
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

774 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