Exemplo n.º 1
0
 public void serveCoffee(CoffeeOrderContext context)
 {
     Console.WriteLine ("Serving Coffee flavor " + flavor + " to table number " + context.getTable ());
 }
Exemplo n.º 2
0
 public static void takeOrders(String flavorIn, int table)
 {
     flavors [ordersMade]  = flavorFactory.getCoffeeFlavor(flavorIn);
     tables [ordersMade++] = new CoffeeOrderContext(table);
 }
Exemplo n.º 3
0
 public static void takeOrders(String flavorIn, int table)
 {
     flavors [ordersMade] = flavorFactory.getCoffeeFlavor (flavorIn);
     tables [ordersMade++] = new CoffeeOrderContext (table);
 }
Exemplo n.º 4
0
 public void serveCoffee(CoffeeOrderContext context)
 {
     Console.WriteLine("Serving Coffee flavor " + flavor + " to table number " + context.getTable());
 }