// Models lawyers who can sue, get 5 more vacation days and // get a $5000 raise every year public class Lawyer extends Employee { public Lawyer(int yearsWorked) { super(yearsWorked); } public void sue() { System.out.println("I sue you!!"); } public String getVacationForm() { return "pink"; } // need to use super. to access overridden definition public int getVacationDays() { return super.getVacationDays() + 5; } // need to use super. to access overridden definition // of getSalary from Employee. // getYears is simply inherited so we don't need super. public double getSalary() { return super.getSalary() + getYears() * 5000; } }