// Project: EmployeeFind // No additional modules defined. // Source code file: Executive.java. // Show how to search collection for a specified substring. public class Executive extends Employee { private double bonus; public Executive(String theId, String theName, char theGender, int theAge, double theSalary, double theBonus) { super(theId, theName, theGender, theAge, theSalary); bonus = theBonus; } public double getSalary() { return super.getSalary( ) + bonus; } @Override public String toString() { return String.format("Executive: %s %s %.2f", getId( ), getName( ), getSalary( )); } }