static void Main(string[] args)
        {
            Builder  builder = new SaltWaterBuilder();
            Director dir     = new Director(builder);

            dir.constract();
            SaltWater saltWater = (SaltWater)builder.getResult();

            Console.ReadKey();
        }
Exemple #2
0
 public SaltWaterBuilder()
 {
     this.saltWater = new SaltWater(0, 0);
 }