今天遇到的面试题!

     class a   

  {       

   public static int A; 

       static a()

        { 

           A = b.B + 1;

        }

    }    

  class b

    {       

   public static int B = a.A + 1;

        static void Main(string[] args)

        {

            Console.WriteLine(a.A+"-------------"+b.B);

        }

    }

 

 

1-------------2

答案写对了,但还有点不清楚,哪位高人指点下

posted @ 2010-11-29 17:54  陌文隐  阅读(391)  评论(5编辑  收藏  举报