public void TestMethodOverloading() { Base d = new Derived(); MethodOverloading.OverloadedMethod(d); Base d2 = new Derived(); d2.VirtualMethod(); }
public static void OverloadedMethod(Derived d) { d.VirtualMethod(); }