// A class to represent employees in general (20-page manual). public class Employee { private int yearsWorked; public Employee(int yearsWorked) { this.yearsWorked = yearsWorked; } public int getYearsWorked() { return yearsWorked; } public int getHours() { return 40; // works 40 hours / week } public double getSalary() { return 40000.0; // $40,000.00 / year } // all employees get 2 weeks' paid vacation // some get a vacation bonus public int getVacationDays() { return 10 + getVacationDayBonus(); } // default vacation bonus is based on years worked public int getVacationDayBonus() { return 2 * yearsWorked; } public String getVacationForm() { return "yellow"; // use the yellow form } }