Exemplo n.º 1
0
 public void takeOrder(Meal meal)
 {
     Console.WriteLine("The meal {0} has been ordered.", meal.name);
 } //end takeOrder
Exemplo n.º 2
0
 public static decimal adjustBalance(Meal meal)
 {
     Balance.balance = balance + meal.price;
     balance         = balance - meal.cost;
     return(balance);
 } //end adjust balance
Exemplo n.º 3
0
 public static void cookMeal(Meal meal)
 {
     Console.WriteLine("The meal {0} has been cooked.", meal.name);
 }