Inheritance: Farm.Animal
 static void Main(string[] args)
 {
     Animal dog = new Dog();
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            var dog = new Dog();

            dog.Eat();
        }