Talk:Builder pattern: Difference between revisions

Content deleted Content added
No edit summary
Ambiguity? Or am I just confused...
Line 9:
==Class data members should be private, chefs create pizza==
The abstract class PizzaBuilder should not have a protected Pizza data member this should be private. Having protected data creates fragile class hierarchies and generally should be avoided. Also a minor point, but generally chefs do the cooking not waiters!
 
== Ambiguity? Or am I just confused... ==
 
The explanation for the Director class is:
"The Director class is responsible for managing the correct sequence of object creation. It receives a Concrete Builder as a parameter and executes the necessary operations on it."
 
Under the "Difference Between Builder pattern and Abstract factory pattern" heading, this is mentioned:
"...the client just requests a configuration and the builder directs the logic of building it"
 
This seems to say that the Builder manages "the correct sequence of object creation". Is the client the "Director" or is the builder the "Director"?