public void BuildSandwich() { builder.CreateNewSandwich(); builder.PrepareBread(); builder.ApplyMeatAndCheese(); builder.ApplyVegetables(); builder.AddCondiments(); }
// Builder uses a complex series of steps // public void Assemble(SandwichBuilder sandwichBuilder) { sandwichBuilder.AddBread(); sandwichBuilder.AddMeats(); sandwichBuilder.AddCheese(); sandwichBuilder.AddVeggies(); sandwichBuilder.AddCondiments(); }