Exemple #1
0
 public static void calculate(Meal meal)
 {
     _balance = _balance + meal.price;
     _balance = _balance - meal.cost;
     Console.WriteLine("The price of the meal is " + meal.price + ". The cost of the meal is " + meal.cost);
 }
Exemple #2
0
 public void takeOrder(Meal meal)
 {
     Console.WriteLine("The meal {0} has been ordered.", meal.name);
 }
Exemple #3
0
 public static void cookMeal(Meal meal)
 {
     Console.WriteLine("The meal {0} has been cooked.", meal.name);
 }