public static void Main(string[] args) { var obj = new UsedDerivedType(); RunFromBase(obj); RunFromIterface(obj); }
public static void Main(string[] args) { var obj = new UsedDerivedType(); Test(obj); new DerivedTypeWithoudMethodUsage(); Test(new DerivedClassWithoutMethod()); }