-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWaiter.java
More file actions
41 lines (33 loc) · 1012 Bytes
/
Waiter.java
File metadata and controls
41 lines (33 loc) · 1012 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
36
37
38
39
40
41
import java.io.Serializable;
public class Waiter extends Person implements Serializable {
private static final long serialVersionUID = 1L;
private int WaiterID;
private Waiter Waiterlink;
public Waiter() {
super();
this.WaiterID = 0;
this.Waiterlink = null;
}
public Waiter(int age, String name, int WaiterID, Waiter link) {
super(age, name);
this.WaiterID = WaiterID;
this.Waiterlink = link;
}
public Waiter(Waiter Waiter, Waiter link) {
super(Waiter.getAge(), Waiter.getName());
this.WaiterID = Waiter.getWaiterID();
this.Waiterlink = link;
}
public int getWaiterID() {
return this.WaiterID;
}
public void setWaiterID(int WaiterID) {
this.WaiterID = WaiterID;
}
public Waiter getWaiterLink() {
return this.Waiterlink;
}
public void setWaiterLink(Waiter link) {
this.Waiterlink = link;
}
}