私有字符串stuname
私有字符串stunumber
私有字符串stuclass
public StudentVo(字符串stuname,字符串stunumber,字符串stu class ){
this . stun ame = stun ame;
this . stun number = stun number;
this . stu class = stu class;
}
@覆蓋
公共字符串toString(){
返回“student VO {“+
“我是““+stu class+“\“+。
“同學們,我的名字是=““+stuname+“\“+。
“,學生ID:‘‘+stunnumber+‘\‘‘+
'}';
}
公共字符串getStuname(){
返回stuname
}
public void set stuname(String stuname ){
this . stun ame = stun ame;
}
公共字符串getstunnumber(){
返回stunumber
}
public void sets number(String s number ){
this . stun number = stun number;
}
公共字符串getStuclass(){
返回stuclass
}
public void set stu class(String stu class ){
this . stu class = stu class;
}
}