static void Main(string[] args) { BadParent a = new BadParent(); BadChildren b = new BadChildren(); GoodParent c = new GoodParent(); GoodChildren d = new GoodChildren(); Test(a); Test(b); Test2(c); Test2(d); Console.ReadKey(); }
static void Test(BadParent t) { Console.WriteLine(t.Divide(5, 2)); }