// 22.5hv2 Software Engineering II // Unit 4 exercise 3 import java.io.*; public class Patient extends Person { public Patient(Person details, Date a, Name d) { super(details); admission = a; doctor = d; } public void display() { super.display(); System.out.println("Admitted on the:"); admission.display(); System.out.println("Treated by doctor:"); doctor.display(); } private Date admission; private Name doctor; };