public class Test{
private String name;
private String sxe;
private int age;
public void setName(String newname){
name=newname;
}
public String getName(){
return name;
}
public void show(String name,String sxe,int age){
System.out.println("走这里没");
}
}
class Su{
public static void main(String[] args){
Test hello=new Test();
hello.show("苏雄飞", "男", 20);
hello.setName("大傻逼");
System.out.println(hello.getName());
}
}
添加回答
举报
0/150
提交
取消