mirror of
https://github.com/danbulant/introductionToProgramming
synced 2026-05-19 04:18:32 +00:00
16 lines
392 B
Java
16 lines
392 B
Java
public class Manager extends Employee {
|
|
int monthlyBonus;
|
|
|
|
public Manager(String name, int age, String jobTitle, int salary, int monthlyBonus) {
|
|
super(name, age, jobTitle, salary);
|
|
this.monthlyBonus = monthlyBonus;
|
|
}
|
|
|
|
public int getMonthlyBonus() {
|
|
return monthlyBonus;
|
|
}
|
|
|
|
public int getSalary() {
|
|
return salary + monthlyBonus;
|
|
}
|
|
}
|