public static void Test()
 {
     ICarBuilder carBuilder = new BMWCarBuilder();
     var car = carBuilder.MakeCar(CarType.Family);
     carBuilder = new MercCarBuilder();
     car = carBuilder.MakeCar(CarType.Sport);
 }
Esempio n. 2
0
        public static void Test()
        {
            ICarBuilder carBuilder = new BMWCarBuilder();
            var         car        = carBuilder.MakeCar(CarType.Family);

            carBuilder = new MercCarBuilder();
            car        = carBuilder.MakeCar(CarType.Sport);
        }