static void Main(string[] args) { Bace a = new Bace("a"); a.BaseMethoe(); derived b = new derived("b"); b.BaseMethoe(); b.derivedMethoe(); }
static void Main2(string[] args) { //Base o1 = new derived(); //o1.display(); Base o2 = new Base(); o2.display(); derived o3 = new derived(); o3.display(); derived2 o4 = new derived2(); o4.display(); derived2 o5 = new derived3(); o5.display(); }