1.[代码][Java]代码
public abstract class Employee {
private int employeeId;
private String employeeName;
private String employeeType;
private int totalWorkingDaysPerMonth;
public int getEmployeeId() {
return employeeId;
}
public void setEmployeeId(int employeeId) {
this.employeeId = employeeId;
}
public String getEmployeeName() {
return employeeName;
}
public int getTotalWorkingDaysPerMonth() {
return totalWorkingDaysPerMonth;
}
public void setTotalWorkingDaysPerMonth(int totalWorkingDaysPerMonth) {
this.totalWorkingDaysPerMonth = totalWorkingDaysPerMonth;
}
public void setEmployeeName(String employeeName) {
this.employeeName = employeeName;
}
public void setEmployeeType(String employeeType) {
this.employeeType = employeeType;
}
public String getEmployeeType() {
return employeeType;
}
public Employee(int employeeId, String employeeName, String employeeType) {
super();
this.employeeId = employeeId;
this.employeeName = employeeName;
this.employeeType = employeeType;
}
public int getTotalWorkingDaysPermonth() {
return totalWorkingDaysPerMonth;
}
public abstract double calculateSalary();
}