62,041
社区成员
发帖
与我相关
我的任务
分享
public class dd : System.Web.UI.Page
{ int y=0;
public virtual int aa(int i)
{
this.y=i+1;
return y;
}
public virtual void show()
{ int x=1;
HttpContext.Current.Response.Write(aa(x));
}
}
public partial class _Default :dd
{
int y = 0;
public override int aa(int i)
{
y = i + 2;
return y;
}
public void xxx()
{
show();
}
protected void Page_Load(object sender, EventArgs e)
{
xxx();
}
}