Exemple #1
0
        public void Run()
        {
            C1     c1      = new C1();
            string c1_name = c1.GetNmae(); //C1.virtual
            C2     c2      = new C2();
            string c2_name = c2.GetNmae(); //C2.override
            C3     c3      = new C3();
            string c3_name = c3.GetNmae(); //C1.virtual

            C1     c12      = new C2();
            string c12_name = c12.GetNmae(); //C2.override
            C1     c13      = new C3();
            string c13_name = c13.GetNmae(); //C1.virtual

            C1     c42      = new C42();
            string c42_name = c42.GetNmae();//C2.override

            C5     c5      = new C5();
            string c5_name = c5.GetNmae();//C0
        }