package programmingexample7;
public class SalesPerson extends Employee {
private float commission;
public SalesPerson(String title, String firstName, String lastName, int quota) {
super(title, firstName, lastName, quota);
}
public double calculateSalary() {
double totalSal;
totalSal = super.getBaseSalary() + commission * super.getSalesAchieved()
+ super.calculateParkingFringeBenefits()
– super.calculateTax();
return totalSal;
}
}