本帖最后由 zc332750 于 2014-2-8 10:16 编辑
还是不明白set get方法以及return的用法,大家谁能给我讲讲下面这段代码什么意思啊啊啊public class Yonghu {
private int id;
private String name;
private String password;
public void setid(int id){
this.id=id;
}
public void setname(String name){
this.name=name;
}
public void setpassword(String password){
this.password=password;
}
public int getid(){
return this.id;
}
public String getname(){
return this.name;
}
public String getpassword(){
return this.password;
}
}
|