jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
Q 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




Ask A Question



 

Related Links

Patterns FAQ

Patterns Forum

Design Patterns Home Page

Huston Design Patterns

Brad Appleton's Software Patterns Links

Object-Oriented Bibliography

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers