-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorker.java
56 lines (43 loc) · 1.12 KB
/
Worker.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
53
54
55
56
//package Classes;
public class Worker {
public String wName;
public String wID;
public String workerPwd;
public String phonenNo;
public Worker(String wName, String wID, String workerPwd, String phonenNo) {
this.wName = wName;
this.wID = wID;
this.workerPwd = workerPwd;
this.phonenNo = phonenNo;
}
//Setter
public void setwName(String wName) {
this.wName = wName;
}
public void setwID(String wID) {
this.wID = wID;
}
public void setWorkerPwd(String workerPwd) {
this.workerPwd = workerPwd;
}
public void setPhonenNo(String phonenNo) {
this.phonenNo = phonenNo;
}
//Getter
public String getwName() {
return wName;
}
public String getwID() {
return wID;
}
public String getWorkerPwd() {
return workerPwd;
}
public String getPhonenNo() {
return phonenNo;
}
@Override
public String toString() {
return (wName + "\t" + wID + "\t" + workerPwd + "\t" + phonenNo + "");
}
}