// CSE 142, Spring 2010, Marty Stepp // A Lawyer is a specialized kind of Employee with some additional behavior // for filing lawsuits. Lawyers replace ("override") the vacation days behavior // from the Employee superclass to give them +5 additional days. // They also override the default salary to give them twice the pay. public class Lawyer extends Employee { // new behavior public void sue() { System.out.println("I'll see you in court, biotch!"); } // +5 more vacation days than the default employee public int getVacationDays() { return super.getVacationDays() + 5; } // twice as much money as the default behavior public double getSalary() { return super.getSalary() * 2; } }