-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployees.java
More file actions
43 lines (38 loc) · 906 Bytes
/
Employees.java
File metadata and controls
43 lines (38 loc) · 906 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
package project;
public abstract class Employees {
protected String ID;
protected String name ;
protected double baseSalary;
protected String employeeType;
public Employees(String ID, String name, double baseSalary, String employeeType) {
this.ID = ID;
this.name = name;
this.baseSalary = baseSalary;
this.employeeType = employeeType;
}
public String getID(){
return ID;
}
public void setID(String ID) {
this.ID = ID;
}
public String getname() {
return name;
}
public void setname(String name) {
this.name = name;
}
public double getbaseSalary() {
return baseSalary;
}
public void setbaseSalary(double baseSalary) {
this.baseSalary= baseSalary;
}
public String getemployeeType() {
return employeeType;
}
public void setemployeeType(String employeeType) {
this.employeeType = employeeType;
}
abstract double getSalary();
}