Пример #1
0
        static void Main(string[] args)
        {
            Animal a = new Cat();

            Console.WriteLine(a.ToString());
            a.gaugau();
            a.sound();
            a.Eat();
            Cat b = new Cat();

            Console.WriteLine(b.ToString());
            b.sound();
            b.Eat();
        }