public class stu
{
private string name;
public static int count;
public stu()
{
}
public string Name
{
get{return name;}
set{name = value;}
}
private string Method1()
{
Response.Write(“私有方法”);
}
public string Method2()
{
Response.Write(“公有方法”);
}
}
{
private string name;
public static int count;
public stu()
{
}
public string Name
{
get{return name;}
set{name = value;}
}
private string Method1()
{
Response.Write(“私有方法”);
}
public string Method2()
{
Response.Write(“公有方法”);
}
}