-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatient.java
More file actions
41 lines (40 loc) · 1002 Bytes
/
Copy pathPatient.java
File metadata and controls
41 lines (40 loc) · 1002 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
public class Patient {
String name;
Integer age;
String disease;
Integer amount;
public Patient(String name, Integer age, String disease, Integer amount) {
this.name = name;
this.age = age;
this.disease = disease;
this.amount = amount;
}
public String getName() {
return name;
}
public Integer getAge() {
return age;
}
public String getDisease() {
return disease;
}
public Integer getAmount() {
return amount;
}
public void setName(String name) {
this.name = name;
}
public void setAge(Integer age) {
this.age = age;
}
public void setDisease(String disease) {
this.disease = disease;
}
public void setAmount(Integer amount) {
this.amount = amount;
}
@Override
public String toString() {
return "Patient [name=" + name + ", age=" + age + ", disease=" + disease + ", amount=" + amount + "]";
}
}