摘要: 偶然看到一道面试题,题目如下:view plaincopy to clipboardprint?1 public class A2 {3 public static int X;4 static A()5 {6 X = B.Y + 1;7 }8 }9 public class B10 {11 public static int Y = A.X + 1;12 static B()13 { }14 }15 class Program16 {17 static void Main(string[] args)18 {19 Console.WriteLine("X={0},Y={1}&quo 阅读全文
posted @ 2010-04-16 09:17 cpcpc 阅读(2035) 评论(0) 推荐(1)