Exemple #1
0
        public InheritanceTest()
        {
            Animal a = new Dog();

            method(a);
        }
Exemple #2
0
 private void method(Dog d)
 {
     Console.WriteLine("Dog");
 }