MCPcopy Create free account
hub / github.com/Krishna18062005/Hospital_Management_System_Java / Doctor

Class Doctor

Doctor.java:3–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Hospital;
2
3public class Doctor {
4 private int id;
5 private String name;
6 private String specialization;
7
8 public Doctor(int id, String name, String specialization) {
9 this.id = id;
10 this.name = name;
11 this.specialization = specialization;
12 }
13
14 public int getId() {
15 return id;
16 }
17
18 public void setId(int id) {
19 this.id = id;
20 }
21
22 public String getName() {
23 return name;
24 }
25
26 public void setName(String name) {
27 this.name = name;
28 }
29
30 public String getSpecialization() {
31 return specialization;
32 }
33
34 public void setSpecialization(String specialization) {
35 this.specialization = specialization;
36 }
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected