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