Solved

What is the diffrence between Factory and abstract factory design pattern

Posted on 2009-03-31
4
556 Views
Last Modified: 2013-11-12
What is the diffrence between Factory and abstract factory design pattern
0
Comment
Question by:replyanshu
[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
4 Comments
 
LVL 9

Assisted Solution

by:Misbah
Misbah earned 100 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 25 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 125 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article explores the difference between two entities: List and Category.   In part one,  we'll look at the basic concepts, and set some groundwork.  In part two, we'll get to some conclusions. I know that these two things are different, but…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

628 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