Abstract Factory VS Factory Method
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rajeev_jha
Posted On:   Monday, January 24, 2005 03:27 AM

Can anyone explain with exmaples the difference between Factory Method and Abstract Factory Design Patterns?

Re: Abstract Factory VS Factory Method

Posted By:   Sanjay_Chittar  
Posted On:   Monday, February 14, 2005 02:56 AM

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.

Re: Abstract Factory VS Factory Method

Posted By:   Avinash_Agrawal  
Posted On:   Monday, January 24, 2005 10:31 PM

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.

About | Sitemap | Contact