protected 内部 public

protected 方法内部 不能再有public 修饰符:
 protected void Page_Load(object sender, EventArgs e)
{
  
public const string str = "a";//编译错误
}

posted on 2007-11-13 11:09  simhare  阅读(130)  评论(0)    收藏  举报

导航