Solved

What is the diffrence between Factory and abstract factory design pattern

Posted on 2009-03-31
4
550 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 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Best Method for Temporarly Storing and Reading Logs 12 314
SAFe and certifications 2 130
general software design question Python related 1 109
map interface methods 3 73
Before You Read The Article Please make sure you understand these two concepts: Variable Scope (http://www.php.net/manual/en/language.variables.scope.php) and Property Visibility (http://www.php.net/manual/en/language.oop5.visibility.php).  And to …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

830 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