static void Main(string[] args) { ColaBuilder builder = new ColaBuilder(); Foreman foreman = new Foreman(builder); foreman.CreateDrink(); Drink d = builder.GetResult(); }
static void Main(string[] args) { Builder builder = new ManicureMaster(); Foreman foreman = new Foreman(builder); foreman.GiveCommand(); Nails nails = builder.GetManicure(); }
static void Main(string[] args) { Builder builder = new ConcreteBuilder(); Foreman foreman = new Foreman(builder); foreman.Construct(); House house = builder.GetResult(); Console.ReadKey(); }
public static void Main() { Builder builder = new ConcreteBuilder(); Foreman foreman = new Foreman(builder); foreman.Construct(); House house = builder.GetResult(); // Delay. Console.ReadKey(); }
static void Main(string[] args) { //house building Builder.Builder b = new ConcreteBuilder(); Foreman f = new Foreman(b); f.Construct(); House h = b.GetResult(); //bottle building BottleBuilder.BottleBuilder bb = new PepsiBottleBuilder(); Director d = new Director(bb); d.Construct(); Bottle bottle = bb.GetBottle(); }
public House.House BuildHome(Foreman foreman) { return(foreman.Build()); }