Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the diffrence between Factory and abstract factory design pattern

Posted on 2009-03-31
4
Medium Priority
?
564 Views
Last Modified: 2013-11-12
What is the diffrence between Factory and abstract factory design pattern
0
Comment
Question by:replyanshu
4 Comments
 
LVL 9

Assisted Solution

by:Misbah
Misbah earned 300 total points
ID: 24036174
in Factory. you will use a static method that will return and object of type x and store this object in a variable of the same type x.

Circle c = Factory.CreateCircle();

in Abstract Factory, the difference is that the return object will be stored in super abstract class.

Shape c = Factory.CreateCircle();
0
 
LVL 15

Assisted Solution

by:alienvoice
alienvoice earned 75 total points
ID: 24036177
Hope this helps. Has already been addressed in another forum.

http://www.coderanch.com/t/99780/OO-Patterns-UML-Refactoring/Factory-Vs-Abstract-Factory-Pattern
0
 
LVL 20

Accepted Solution

by:
Venabili earned 375 total points
ID: 24037764
The guys above already gave you some good advice, but I had always found http://jamesthornton.com/eckel/TIPatterns/html/Chapter06.html a good explanation for all types of Factories.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Pretext and Context: In this series, I wish to design the data model of systems in question. I will start by defining the scope and boundaries of the system, followed by subsystems involved, then finally the entities in those systems and subsystems…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 6 hours left to enroll

971 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