Why "Abstract Factory" has an abstract in it?
From: Asapi (Asapi_at_net.net)
Date: 12/14/03
- Next message: Phlip: "Re: Test Driven Development"
- Previous message: Isaac Gouy: "Re: Alternative Patterns"
- Next in thread: Jan Ploski: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Jan Ploski: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Universe: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Phlip: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Cristiano Sadun: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Uncle Bob (Robert C. Martin): "Re: Why "Abstract Factory" has an abstract in it?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 14 Dec 2003 20:25:34 GMT
I don't understand why "Abstract Factory" has a word "abstract" in it since
an abstract factory is not an abstract class, at least in the example of
MazeFactory class of Gang4's book. Thus, what's the meaning of "abstract"
here? Why not just call it "class factory" or even "object factory"?
In addition to see it's cute to have one class for handling all related
objects' creation, I don't see other advantages beyond this. Even having a
factory for some related classes doesn't seem much advantageous. Of course
this is my problem.
Could someone share some insights about practical usage and advantages of
such a pattern?
Thanks!
- Next message: Phlip: "Re: Test Driven Development"
- Previous message: Isaac Gouy: "Re: Alternative Patterns"
- Next in thread: Jan Ploski: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Jan Ploski: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Universe: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Phlip: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Cristiano Sadun: "Re: Why "Abstract Factory" has an abstract in it?"
- Reply: Uncle Bob (Robert C. Martin): "Re: Why "Abstract Factory" has an abstract in it?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|