// models secretaries // secretaries are like employees but they can also take // dictation public class Secretary extends Employee { public Secretary(int yearsWorked) { super(yearsWorked); } // secretaries do not get more vacation based on seniority // this method is called by the inherited getVacationDays // we call this dynamic binding -- the version of getVacationDayBonus // is dtermined at run time public int getVacationDayBonus() { return 0; } public void takeDictation(String words) { System.out.println("Taking dictation: " + words); } }