Exemple #1
0
        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);
 }
Exemple #3
0
        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);
        }
Exemple #4
0
        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();
            }
        }
Exemple #5
0
        public static void Main()
        {
            var chef = new Chef("Andre Tokev");

            chef.Cook();
        }
Exemple #6
0
 static void Main(string[] args)
 {
     var chef = new Chef();
     var bowl = chef.Cook();
     Console.WriteLine("Ingredients prepared in the cooking bowl:\n{0}", bowl);
 }