Skip to Content.
Sympa Menu

gang-of-4-patterns - [gang-of-4-patterns] Doubt on creational patterns..

gang-of-4-patterns AT lists.cs.illinois.edu

Subject: Design Patterns discussion

List archive

[gang-of-4-patterns] Doubt on creational patterns..


Chronological Thread 
  • From: "Jacob George" <jacobg AT atinav.com>
  • To: "GOF Mailing List" <gang-of-4-patterns AT cs.uiuc.edu>
  • Subject: [gang-of-4-patterns] Doubt on creational patterns..
  • Date: Mon, 22 Sep 2003 14:29:59 +0530
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

Hi,
    I am new to this group and is presently trying to understand creational patterns. I got confused by the "Factory method" pattern and "Abstract Factory" pattern. Both are used for instantiating objects, right? But one is class creational while other is object creational; this point I doesn't understand clearly.
 
    Factory method pattern defers the creation of objects to its sub-classes; anyway, in a actual scenario there will be one concrete factory for creating required objects, right? This is same in the case of Abstract Factory also. So how can we call one as class creational while other as object creational? In both the cases, the type of objects created by the factory changes only by using a factory sub-class, isn't it so?
 
    I have read the respective chapters repeatedly, but was confused on reading "Factory method" & "Abstract factory". Somebody please help me clear the confusion. ThankYou.
 
                                                                                                                regards
                                                                                                                    Jacob George
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 9/18/2003



Archive powered by MHonArc 2.6.16.

Top of Page