class person
{
private String name="gande";
public void getname(String name)
{
this.name=name;
}
public String setname(String name)
{
return this.name=name;
}
public void show()
{
System.out.println(name+"heihei");
}
}
class mstatic
{
public static void main(String[]args)
{
person p=new person();
setname("sunxin");
p.show();
}
}
谢谢各位 |