예제 #1
0
        public void BuildCar()
        {
            BenzBuilder builder = new BenzBuilder();

            _director.Construct(builder);
            Console.WriteLine("Benz Sport Car");
        }
예제 #2
0
        public static BenzModel GetBBenzModel()
        {
            string[] sequence = new string[] { "engine boom", "start", "stop" };

            BenzBuilder benzBuilder = new BenzBuilder();

            benzBuilder.SetSequence(sequence);
            return((BenzModel)benzBuilder.GetCarModel());
        }