예제 #1
0
        public void Run()
        {
            var fluf = new Cat();

            Console.WriteLine($"{fluf.Speak()}");
            fluf.Purr();
            fluf.Eat();

            var spot = new Dog();

            Console.WriteLine($"{spot.Speak()}");
            spot.Breed = "Chihuahua";
            spot.TellBreed();
            spot.Eat();
        }