Exemple #1
0
        static void Main(string[] args)
        {
            VeiculoBuilder builder;
            var            director = new Director();

            builder = new CarroBuilder();
            director.Construct(builder);
            builder.Veiculo.Mostrar();

            builder = new MotoBuilder();
            director.Construct(builder);
            builder.Veiculo.Mostrar();

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            VeiculoBuilder builder;
            var director = new Director();

            builder = new CarroBuilder();
            director.Construir(builder);
            builder.Veiculo.Mostrar();

            builder = new MotoBuilder();
            director.Construir(builder);
            builder.Veiculo.Mostrar();

            Console.ReadLine();
        }