Builder Pattern - Specific problems and implementation
by, 03-09-2012 at 07:16 PM (1308 Views)
Builder & the Abstract Factory
Builder design pattern and the abstract Factory pattern have a lot of similar things. This is the reason why it is necessary to come up with certain different condition b/w situations, when we use one of them. For abstract factory, factory methods are used by the client so that to make its own objects. In case of builder, the builder class gets instructions regarding the way to create object. However in which way the class will be put together depends on Builder class. Such details bring difference among the 2 patterns.
Productís common interface
Products that are created by concrete builders consist of a different structure therefore no reason is present for deriving different kind of products with a common parent class. It also makes Abstract Factory pattern different from Builder pattern that creates objects that have been derived from common type.