-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppointment.java
More file actions
25 lines (21 loc) · 872 Bytes
/
Copy pathAppointment.java
File metadata and controls
25 lines (21 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public class Appointment {
private String patientName;
private String mobilePhone;
private String preferredTime;
private Radiologist selectedRadiologist;
public Appointment() {
}
public Appointment(String patientName, String mobilePhone, String preferredTime, Radiologist selectedRadiologist) {
this.patientName = patientName;
this.mobilePhone = mobilePhone;
this.preferredTime = preferredTime;
this.selectedRadiologist = selectedRadiologist;
}
public void printDetails() {
System.out.println("Patient Name: " + patientName);
System.out.println("Mobile Phone: " + mobilePhone);
System.out.println("Preferred Time: " + preferredTime);
System.out.print("Selected Radiologist: ");
selectedRadiologist.displayRadiologistDetails();
}
}