Пример #1
0
        //LD_TEMPLATEMETHOD_000
        public static void RunTemplateMethodBehavioralPattern()
        {
            AbstractCarBuilder c = new PorcheBuilder();

            c.BuildCar();

            c = new BeetleBuilder();
            c.BuildCar();
        }
Пример #2
0
        private static void Main(string[] args)
        {
            CarBuilder c = new PorcheBuilder();

            c.BuildCar();

            c = new BeetleBuilder();
            c.BuildCar();

            Console.ReadKey();
        }