Example #1
0
        public static void InputFood(out Chicken chicken, out Egg egg, out Potato potato)
        {
            Write("Введите вес ципленка -");
            int weightChicken = Convert.ToInt32(ReadLine());

            Write("Введите количество яиц -");
            int countEgg = Convert.ToInt32(ReadLine());

            Write("Введите вес картофеля -");
            int weightPotato = Convert.ToInt32(ReadLine());

            chicken = new Chicken(weightChicken);
            egg     = new Egg(countEgg);
            potato  = new Potato(weightPotato);
        }