// A class to represent secretaries. public class Secretary extends Employee { public Secretary(int years) { super(years); } // secretaries don't get any bonus vacation days for their years // at the company. Overriding this method means that the inherited // getVacationDays method will call this version instead. public int getSeniorityBonus() { return 0; } // the unique behavior of secretaries public void takeDictation(String text) { System.out.println("Taking dictation of text: " + text); } }