import java.io.*; import java.util.Scanner; public class Appointment extends DueDo { private String where; private Time end; public void read(Scanner in) throws IOException { super.read(in); System.out.print("enter end time [hh:mma/p]: "); end = new Time(in.nextLine()); System.out.print("enter where: "); where = in.nextLine(); } public String toString() { return super.toString() + " - " + end + ", " + where; } }