-
Notifications
You must be signed in to change notification settings - Fork 0
/
employee.java
75 lines (60 loc) · 1.77 KB
/
employee.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
public class employee {
private String name, department, position, dateHired;
private int idNumber;
public employee(String name, int idNumber, String department, String position, String dateHired) {
this.name = name;
this.idNumber = idNumber;
this.department = department;
this.position = position;
this.dateHired = dateHired;
}
public employee(String name, int idNumber, String dateHired){
this.name = name;
this.idNumber = idNumber;
this.department = "";
this.position = "";
this.dateHired = dateHired;
}
public employee(String department, String position, String dateHired){
this.department = department;
this.position = position;
this.dateHired = dateHired;
}
public employee() {
this.name = "";
this.idNumber = 0;
this.department = "";
this.position = "";
this.dateHired = "";
}
public void assignName(String name){
this.name = name;
}
public void assignIDNumber(int idNumber){
this.idNumber = idNumber;
}
public void assignDepartment(String department){
this.department = department;
}
public void assignPosition(String position){
this.position = position;
}
public void assignDateHired(String dateHired){
this.dateHired = dateHired;
}
public String getName(){
return name;
}
public int getIDNumber(){
return idNumber;
}
public String getDepartment(){
return department;
}
public String getPosition(){
return position;
}
public String getDateHired(){
return dateHired;
}
}