forked from loopccoew/Buffer_3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patient.java
76 lines (52 loc) · 1.19 KB
/
Patient.java
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package loop;
public class Patient {
//Veritable Declaration
private String Id;
private String Name;
private String Age;
private String ContNo;
private String BloodGrp;
//Parameterized Constructor
public Patient(String Id, String Name, String Age, String ContNo, String BloodGrp) {
this.Id = Id;
this.Name = Name;
this.Age = Age;
this.ContNo =ContNo;
this.BloodGrp = BloodGrp;
}
public String getId() {
return Id;
}
public void setId(String id) {
this.Id = Id;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
public String getAge() {
return Age;
}
public void setAge(String Age) {
this.Age = Age;
}
public String getContNo() {
return ContNo;
}
public void setContNo(String ContNo) {
this.ContNo = ContNo;
}
public String getBloodGrp() {
return BloodGrp;
}
public void setBloodGrp(String BloodGrp) {
this.BloodGrp = BloodGrp;
}
@Override
public String toString() {
return "Patient : [Id=" + Id + ", Name=" + Name + ", Age=" + Age + ", ContNo=" + ContNo + ", BloodGrp=" + BloodGrp
+ "]";
}
}