Posted in 面试题 onAugust 10, 2013
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(“公有方法”);
}
}
编写一个类体现构造,公有,私有方法,静态,私有变量
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Tags in this post...
Reply on: @reply_date@
@reply_contents@