コード例 #1
0
ファイル: Program.cs プロジェクト: felipejzsouza/Patterns
        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();
        }
コード例 #2
0
        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();
        }