| 1 | package Hospital; |
| 2 | |
| 3 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected