// Allison Obourn, CSE 142 // A class to represent employees in general (20-page manual). public class Employee { private int years; // creates an employee with the provided years // working at the company public Employee(int years) { this.years = years; } // "getter" method so clients or subclasses // can see the value of a private field public int getYears() { return years; } // returns the hours the employee works per week public int getHours() { return 40; } // returns the yearly salary public double getSalary() { return 40000.0; } // returns the paid vacation days per year public int getVacationDays() { return 10 + 2 * years; } // returns the form to submit to request vacation public String getVacationForm() { return "yellow"; } }