// CSE 142 Lecture 20 // Interacting with Super Class // A class to represent employees in general (20-page manual). public class Employee { private int years; public Employee(int years) { this.years = years; } public int getYears() { return years; } public int getHours() { return 40; // works 40 hours / week } public double getSalary() { return 40000.0; // $40,000.00 / year } public int getVacationDays() { return 10 + getSeniorityDays(); // 2 weeks' paid vacation } public int getSeniorityDays() { return 2 * years; } public String getVacationForm() { return "yellow"; // use the yellow form } }