Exemplo n.º 1
0
        public void method1()
        {
            var obj1 = new Son();

            Father obj2 = new Father();

            Father obj3 = new Son();
            Father obj4 = new Daughter();
        }
Exemplo n.º 2
0
        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();
        }