变量作用域的问题

using system;
namespace wrox.procsharp.basics
{
 class scopetest2
  {
  static int j=20;
  public static void main()
   {
   //int j=30 这里的能不能重复作用?作用后会显示哪个结果呀?
   console.writeline(j);
   return;
   }
  }

}
//最后的调试结果是不成功的,说不能调试,不知为什么?(问)

posted on 2004-08-23 22:08  学习.net  阅读(266)  评论(1编辑  收藏  举报

导航