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