public static void Test()
 {
     ICarBuilder carBuilder = new BMWCarBuilder();
     var car = carBuilder.MakeCar(CarType.Family);
     carBuilder = new MercCarBuilder();
     car = carBuilder.MakeCar(CarType.Sport);
 }
Ejemplo 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);
        }