示例#1
0
        static void Main(string[] args)
        {
            Buffet lunch = new Buffet();
            Food   Meal  = lunch.Serve();
            Ninja  Amigo = new Ninja();

            while (!Amigo.IsFull)
            {
                Amigo.Eat(lunch.Serve());
                // Console.WriteLine($"Food is {}");
            }

            // Amigo.Eat(Meal);
            // Console.WriteLine($"Food is {Meal.Name}");
            // Amigo.Eat(Meal);
        }