-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPatient.java
45 lines (37 loc) · 985 Bytes
/
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
/**
* Patient
*/
public class Patient {
private short idNumber;
private byte age;
BloodData bloodData;
public Patient() {
this.idNumber = 0;
this.age = 0;
bloodData = new BloodData();
}
public Patient(short idNumber, byte age){
this.idNumber = idNumber;
this.age = age;
}
public Patient(String bloodType, char factor) {
this.bloodData = new BloodData(bloodType, factor);
}
public Patient(short idNumber, byte age, String bloodType, char factor) {
this.idNumber = idNumber;
this.age = age;
this.bloodData = new BloodData(bloodType, factor);
}
public short getIdNumber() {
return idNumber;
}
public void setIdNumber(short idNumber) {
this.idNumber = idNumber;
}
public byte getAge() {
return age;
}
public void setAge(byte age) {
this.age = age;
}
}