-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatient.java
More file actions
35 lines (26 loc) · 721 Bytes
/
Patient.java
File metadata and controls
35 lines (26 loc) · 721 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
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Patient extends Person {
String name;
int age;
int NationalCode;
static int NationalCode2;
int DocID,RoomNumber;
static int DocID2,RoomNumber2;
public Patient() {
}
public Patient(String name, int age, int NationalCode, int RoomNumber , int DocID) {
this.name = name;
this.age = age;
this.NationalCode = NationalCode;
this.DocID = DocID;
this.RoomNumber = RoomNumber;
}
void setNationalCode(int nationalCode) {
Patient.NationalCode2 = nationalCode;
}
int getNationalCode() {
return Patient.NationalCode2;
}
}