public void BuildCar() { BenzBuilder builder = new BenzBuilder(); _director.Construct(builder); Console.WriteLine("Benz Sport Car"); }
public static BenzModel GetBBenzModel() { string[] sequence = new string[] { "engine boom", "start", "stop" }; BenzBuilder benzBuilder = new BenzBuilder(); benzBuilder.SetSequence(sequence); return((BenzModel)benzBuilder.GetCarModel()); }