-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployee.java
More file actions
42 lines (37 loc) · 872 Bytes
/
Employee.java
File metadata and controls
42 lines (37 loc) · 872 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
public class Employee {
private String empName;
private int empID;
private char sex;
private boolean usaCitizen;
public Employee() {}//we make this constractor to have access for 2nd employee (but we mad it in next step)
public Employee(String empName, int empID, char sex, boolean usaCitizen) {
this.empName = empName;
this.empID = empID;
this.sex = sex;
this.usaCitizen = usaCitizen;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public int getEmpID() {
return empID;
}
public void setEmpID(int empID) {
this.empID = empID;
}
public char getSex() {
return sex;
}
public void setSex(char sex) {
this.sex = sex;
}
public boolean isUsaCitizen() {
return usaCitizen;
}
public void setUsaCitizen(boolean usaCitizen) {
this.usaCitizen = usaCitizen;
}
}