// CSE 142, Autumn 2009, Marty Stepp // A class to represent secretaries. // This version has a constructor and now calls overridden methods // and the superclass's constructor using the super keyword. public class Secretary extends Employee { public Secretary(int years) { super(years); // call the Employee(int) constructor, passing years } // Overrides the method in Employee so that secretaries won't // get any more vacation days based on their years with the company public int getVacationBonus() { return 0; } public void takeDictation(String text) { System.out.println("Taking dictation of text: " + text); } }