-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployee.java
More file actions
44 lines (35 loc) · 944 Bytes
/
Employee.java
File metadata and controls
44 lines (35 loc) · 944 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
42
43
44
public class Employee {
private String name;
private String employeeId = null;
private String department = null;
public Employee(String name, String employeeId){
setEmployeeId(employeeId);
setName(name);
}
public Employee(String name, String employeeId, String department){
setEmployeeId(employeeId);
setName(name);
setDepartment(department);
}
public Employee(String name) {
setName(name);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
}