-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStaff.java
More file actions
41 lines (31 loc) · 830 Bytes
/
Copy pathStaff.java
File metadata and controls
41 lines (31 loc) · 830 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
package src;
public class Staff extends User{
private long staffId;
private int yearsOfExperience;
private String description;
private double salary;
public long getStaffId() {
return staffId;
}
public void setStaffId(long staffId) {
this.staffId = staffId;
}
public int getYearsOfExperience() {
return yearsOfExperience;
}
public void setYearsOfExperience(int yearsOfExperience) {
this.yearsOfExperience = yearsOfExperience;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public double getSalary() {
return salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
}