摘要:
阅读下面的代码,直接说出输出结果。 class One { private int x = 1; public virtual void Test() { Console.WriteLine("One:" + x); } } class Two : One { private int x = 2; public new void Test() { Console.WriteLine("Two:" + x); } } class Three : Two { } class Program { static void Main(string[] args) 阅读全文
posted @ 2011-04-21 15:57
啊T
阅读(446)
评论(0)
推荐(0)