Beispiel #1
0
        private void Run(FoodFactory factory)
        {
            var food      = factory.GetFood();
            var nutrition = factory.CheckNutrition();

            Console.WriteLine($"Food: {food.Name} | Nutrition: {nutrition}");
            food.Eat();
        }