public void method1() { var obj1 = new Son(); Father obj2 = new Father(); Father obj3 = new Son(); Father obj4 = new Daughter(); }
public void method1() { var obj1 = new Son(); //var d1 = obj1.Field1_Public; //var d2 = obj1.Field3_Protected; Father obj2 = new Father(); var d3 = obj2.Field1_Public; //var d4 = obj2.Field3_Protected; Father obj3 = new Son(); //var d5 = obj3.Field1_Public; // var d6 = obj3.Field3_Protected; // Tree obj4 = new LivingBeing(); }