Commit 5c0b2af2 authored by 9731065's avatar 9731065

employee complited

parent 8775dffe
Pipeline #598 canceled with stages
import java.util.ArrayList;
public abstract class Employee extends Person {
protected ArrayList<Statement> statements = new ArrayList<>();
protected String position;
protected double basicIncome;
public Employee (String position){
this.position = position;
}
public void setBasicIncome(double basicIncome) {
this.basicIncome = basicIncome;
}
public ArrayList<Statement> getStatements() {
return statements;
}
public double getBasicIncome() {
return basicIncome;
}
public String getPosition() {
return position;
}
public void addBankStatement (Statement statement){
this.statements.add(statement);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment