Esempio n. 1
0
        static void Main(string[] args)
        {
            Cat    cat = new Cat();
            Animal dog = new Dog();

            Console.WriteLine(cat.Color);
            cat.shout();
            cat.catchRat();
            Console.WriteLine("---------");
            Console.WriteLine(dog.Color);
            dog.shout();
            Console.ReadLine();
        }