-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPatient.java
50 lines (40 loc) · 1011 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
46
47
48
49
50
package com.company_ggc;
public class Patient {
private String name;
private int age;
private Eye leftEye;
private Eye rightEye;
private Heart heart;
private Stomach stomach;
private Skin skin;
public Patient(String name, int age, Eye leftEye, Eye rightEye, Heart heart, Stomach stomach, Skin skin) {
this.name = name;
this.age = age;
this.leftEye = leftEye;
this.rightEye = rightEye;
this.heart = heart;
this.stomach = stomach;
this.skin = skin;
}
public String getName() {
return name;
}
public int getAge() {
return age;
}
public Eye getLeftEye() {
return leftEye;
}
public Eye getRightEye() {
return rightEye;
}
public Heart getHeart() {
return heart;
}
public Stomach getStomach() {
return stomach;
}
public Skin getSkin() {
return skin;
}
}