-
Notifications
You must be signed in to change notification settings - Fork 0
/
Passenger.java
52 lines (41 loc) · 1.01 KB
/
Passenger.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
public class Passenger {
private int size;
private int arrivalTime;
private int dest;
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public int getArrivalTime() {
return arrivalTime;
}
public void setArrivalTime(int arrivalTime) {
this.arrivalTime = arrivalTime;
}
public int getDest() {
return dest;
}
public void setDest(int dest) {
this.dest = dest;
}
public Passenger(){
size = 0;
arrivalTime = 0;
dest = 0;
}
public Passenger(int size, int arrivalTime, int dest) {
this.size = size;
this.arrivalTime = arrivalTime;
this.dest = dest;
}
@Override
public String toString() {
return "Passenger{" +
"size=" + size +
", arrivalTime=" + arrivalTime +
", dest=" + dest +
'}';
}
}