// Allison Obourn, CSE 142 // Models lawyers who can sue, get 5 more vacation days and // get a $5000 raise every year public class Lawyer extends Employee { // creates a lawyer with the given years of experience public Lawyer(int years) { super(years); } // returns the lawyers' salary, increasing by 5000 each year public double getSalary() { return 40000.0 + 5000 * getYears(); } // returns the number of paid vacation days lawyers get public int getVacationDays() { return 15; } // returns the lawyers' vacation form public String getVacationForm() { return "pink"; } // sues public void sue() { System.out.println("sue"); } }