// A class to represent secretaries, a subtype of employees. // Secretaries are the same as normal employees except they know how to take // dictation. So we "extend" the Employee class to get a copy of all its methods. public class Secretary extends Employee { public void takeDictation(String text) { System.out.println("You said: " + text); } }