static void Main(string[] args) { var chef = new Chef(); var bowl = chef.Cook(); Console.WriteLine("Ingredients prepared in the cooking bowl:\n{0}", bowl); }
static void Main() { Chef test = new Chef("Some Guy"); Carrot carrot = new Carrot(); Potato potato = new Potato(); test.PrepareVegetable(carrot); test.PrepareVegetable(potato); test.Cook(potato, carrot); }
public static void Main() { var chef = new Chef("Gordon Ramsay"); chef.Introduce(); var potato = chef.GetPotato(); var carrot = chef.GetCarrot(); var bowl = chef.GetBowl(); chef.Cook(potato, carrot, bowl); }
public static void Main() { // TASK 2 IPotato potato = new Potato(); Chef chef = new Chef(); if (potato != null) { if (!potato.IsRotten && potato.IsPeeled) { chef.Cook(potato); } } // ----- if (IsInColRange() && IsInRowRange() && !IsVisited()) { VisitCell(); } }
public static void Main() { var chef = new Chef("Andre Tokev"); chef.Cook(); }