摘要: 而在变量上 new要写在public前面,方法上 new写在public 后面 。 1、public new public new void Method2() { Console.WriteLine("Derived - Method2"); } 当基类和派生类都有Method2()时,派生类的对 阅读全文
posted @ 2020-12-05 10:34 八英里 阅读(935) 评论(0) 推荐(0) 编辑