-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCitizen.java
51 lines (48 loc) · 1.22 KB
/
Citizen.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
/**
* Class for creating citizen Objects
*/
public class Citizen {
private int amka;
private String fullName;
private String city;
private Appointment appointment;
/**
* Constructor
* @param amka
* @param fullName
* @param city
*/
public Citizen(int amka, String fullName, String city) {
this.amka = amka;
this.fullName = fullName;
this.city = city;
}
//Getters and Setters for each member variable
public int getAmka() {
return amka;
}
public String getCity() {
return city;
}
public String getFullName() {
return fullName;
}
public Appointment getAppointment() {
return appointment;
}
public void setAmka(int amka) {
this.amka = amka;
}
public void setCity(String city) {
this.city = city;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public void setAppointment(Appointment appointment) {
this.appointment = appointment;
}
public void print(){
System.out.println("Amka: "+getAmka()+", Full Name: "+getFullName()+", City: "+getCity());
}
}