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 Test2(GoodParent t) { t.GiveMeMyBike(90); Console.WriteLine(); }