-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployee.java
More file actions
41 lines (34 loc) · 903 Bytes
/
Copy pathEmployee.java
File metadata and controls
41 lines (34 loc) · 903 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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package projectpro;
/**
*
* @author thien
*/
public abstract class Employee {
protected String empID;
protected String empName;
protected int baseSal;
public Employee(String empID, String empName, int baseSal) {
this.empID = empID;
this.empName = empName;
this.baseSal = baseSal;
}
public String getEmpID() {
return empID;
}
public String getEmpName() {
return empName;
}
public int getBaseSal() {
return baseSal;
}
public abstract double getSalary();
@Override
public String toString() {
return "Employee{" + "empID=" + empID + ", empName=" + empName + ", baseSal=" + baseSal + '}';
}
}