public InheritanceTest() { Animal a = new Dog(); method(a); }
private void method(Dog d) { Console.WriteLine("Dog"); }