Beispiel #1
0
        public static void Main()
        {
            Animal cat = new Cat("Pesho", "Whiskas");
            Animal dog = new Dog("Gosho", "Meat");

            Console.WriteLine(cat.ExplainMyself());
            Console.WriteLine(dog.ExplainMyself());
        }
        static void Main(string[] args)
        {
            Animal cat = new Cat("Pesho", "Koteshka Hrana");
            Animal dog = new Dog("Gosho", "Meso");

            Console.WriteLine(cat.ExplainMyself());
            Console.WriteLine(dog.ExplainMyself());
        }