Abstract Factory VS Factory Method Topic: Patterns
Rajeev Jha, Jan 24, 2005 [replies:2]
Can anyone explain with exmaples the difference between Factory Method and Abstract Factory Design Patterns?
Is this item
helpful? yes no
Previous votes Yes: 0 No: 0
|
|

 |
Re: Abstract Factory VS Factory Method Topic: Patterns
Avinash Agrawal, Jan 24, 2005
In the factory method design pattern All creaters needs to be subclassed while in Abstract Factory method only one class is need to be subclassed.
Factory method has only one creator while abstract factory method has multiple creators.
Scope of the Factory method is class level i.e. factory method is implemented using the subclassing (inheritence), while Abstract Factory method uses delegation.
Is this item
helpful? yes no
Previous votes Yes: 1 No: 0
|
|
|
 |
Re: Abstract Factory VS Factory Method Topic: Patterns
Sanjay Chittar, Feb 14, 2005
If I can add to the differences.
Abstract factory is a creational pattern for the family of objects.
Whereas the factory method is a way to get one individual member of a family.
Hence Abstract Factory makes use of Factory Methods.
Is this item
helpful? yes no
Previous votes Yes: 1 No: 0
|
|
|
|
|
 |
|