示例#1
0
        private void btnOverride_Click(object sender, EventArgs e)
        {
            Child2 child = new Child2();

            child.DoOverride();

            Father father = new Child2();

            father.DoOverride();
        }
示例#2
0
        private void btnNewMethod_Click(object sender, EventArgs e)
        {
            Child2 child = new Child2();

            child.DoNew();

            Father father = new Child2();

            father.DoNew();
        }