aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes difference between builder pattern and abstract factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "difference between builder pattern and abstract factory" Watch "difference between builder pattern and abstract factory" New topic
Author

difference between builder pattern and abstract factory

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
Hi
I am preparing for my SCEA 1 .i am a bit muddled after reading about the builder and abstract factor pattern
They seem so similar what is the difference between the two
Could anyone help me out
Cheers
Priya
Deriko Prata
Greenhorn

Joined: Dec 16, 2010
Posts: 21
hello there,

Both are creational patterns, although they seem similar, the key factor to distinguish them , is their intention. The builder pattern consists in constructing a complex object, by directing the steps of its creation, thereby you can have different final products. The abstract factory pattern, combines factory methods to delegate the responsibility of creating a group of related objects(family) to its concrete subclasses.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: difference between builder pattern and abstract factory