该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
package oneTest;
public class Teacher {
String teacherName ;//姓名
String teacherNumber;//编号
Double teachergongzi;//工资
Double teacherjiangjin;//奖金
public Teacher(String tn,String tnum,Double gz,Double jj){ setTeacherName(tn); setTeacherNumber(tnum); setTeachergongzi(gz); setTeacherjiangjin(jj); }
String getTeacherName() {return teacherName; }
void setTeacherName(String teacherName) {this.teacherName = teacherName;}
String getTeacherNumber() {
return teacherNumber;}
void setTeacherNumber(String teacherNumber) { this.teacherNumber = teacherNumber;}
Double getTeachergongzi() {
return teachergongzi;}
void setTeachergongzi(Double teachergongzi) {
this.teachergongzi = teachergongzi;}
Double getTeacherjiangjin() {
return teacherjiangjin;
}
void setTeacherjiangjin(Double teacherjiangjin) {
this.teacherjiangjin = teacherjiangjin;}
Double gongzijiangjin(){//计算工资奖金
Double gongzijiangjin=getTeachergongzi()+getTeacherjiangjin(); return gongzijiangjin; }
}