public static void Main() { BaseClass obj1 = new BaseClass(); DerivedClass obj2 = new DerivedClass(); obj1.MethodA(); obj2.MethodA(); obj2.MethodA(1); }
public static void Main() { BaseClass s = new DerivedClass(); s.MethodA(); s.MethodB(); s.MethodC(); }
public static void Main() { DerivedClass obj = new DerivedClass(); obj.MethodA(); }