package org.university.core;
import java.util.Date;
public class ServiceEmployee extends AbstractEmployee
{
public ServiceEmployee(String firstName, String lastName, String ID, int joiningYear, Department department, String position, double basicIncome) {
super(firstName, lastName, ID, joiningYear, department, position, basicIncome);
}
int passedDays = 0;
public void setPassedDays(int passedDays) {
this.passedDays++;
}
@Override
public boolean isPromotable() {
if(passedDays > 365*3 )
{
passedDays = 0;
return true;
}
else
return false;
}
@Override
public AbstractEmployee callEmployee() {
return null;
}
}
-
Amirhosein Rajabpour authored8a026070