public void TestMethodOverloading()
        {
            Base d = new Derived();
            MethodOverloading.OverloadedMethod(d);

            Base d2 = new Derived();
            d2.VirtualMethod();
        }
Example #2
0
 public static void OverloadedMethod(Derived d)
 {
     d.VirtualMethod();
 }