Talk:Builder pattern: Difference between revisions

Content deleted Content added
Line 20:
private String topping;
 
public voidBuilder dough(String dough) {
this.dough = dough;
return this;
}
public voidBuilder sauce(String sauce) {
this.sauce = sauce;
return this;
}
public voidBuilder topping(String topping) {
this.topping = topping;
return this;
}