MCPcopy Index your code
hub / github.com/Krishna18062005/Hospital_Management_System_Java / Appointment

Class Appointment

Appointment.java:3–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Hospital;
2
3public class Appointment {
4 private int id;
5 private int patientId;
6 private int doctorId;
7 private String date;
8
9 public Appointment(int id, int patientId, int doctorId, String date) {
10 this.id = id;
11 this.patientId = patientId;
12 this.doctorId = doctorId;
13 this.date = date;
14 }
15
16 public int getId() {
17 return id;
18 }
19
20 public void setId(int id) {
21 this.id = id;
22 }
23
24 public int getPatientId() {
25 return patientId;
26 }
27
28 public void setPatientId(int patientId) {
29 this.patientId = patientId;
30 }
31
32 public int getDoctorId() {
33 return doctorId;
34 }
35
36 public void setDoctorId(int doctorId) {
37 this.doctorId = doctorId;
38 }
39
40 public String getDate() {
41 return date;
42 }
43
44 public void setDate(String date) {
45 this.date = date;
46 }
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected