1700471931
public final static int FEMALE=1;//1代表是女性
1700471932
1700471933
//甭管是谁,都有工资
1700471934
1700471935
private String name;
1700471936
1700471937
//只要是员工那就有薪水
1700471938
1700471939
private int salary;
1700471940
1700471941
//性别很重要
1700471942
1700471943
private int sex;
1700471944
1700471945
//以下是简单的getter/setter
1700471946
1700471947
public String getName(){
1700471948
1700471949
return name;
1700471950
1700471951
}
1700471952
1700471953
public void setName(String name){
1700471954
1700471955
this.name=name;
1700471956
1700471957
}
1700471958
1700471959
public int getSalary(){
1700471960
1700471961
return salary;
1700471962
1700471963
}
1700471964
1700471965
public void setSalary(int salary){
1700471966
1700471967
this.salary=salary;
1700471968
1700471969
}
1700471970
1700471971
public int getSex(){
1700471972
1700471973
return sex;
1700471974
1700471975
}
1700471976
1700471977
public void setSex(int sex){
1700471978
1700471979
this.sex=sex;
1700471980
[
上一页 ]
[ :1.700471931e+09 ]
[
下一页 ]