-
Notifications
You must be signed in to change notification settings - Fork 0
/
Manager.java
42 lines (30 loc) · 868 Bytes
/
Manager.java
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 Manager extends staff {
public Manager(String name, String lastName, int baseSalary, dateOfHire) {
super(name, lastName, baseSalary, dateOfHire);
}
@Override
public setName(String name) {
this.name = name;
}
@Override
public setLastName(String lastName) {
this.lastName = lastName;
}
@Override
public setBaseSalary(int baseSalary) {
this.baseSalary = baseSalary;
}
@Override
public setDateOfHire(dateOfHire dateOfHire) {
this.dateOfHire = dateOfHire;
}
@Override
public String toString() {
return "Manager{" +
"name ='" + name + '\'' +
", lastName ='" + lastName + '\'' +
", baseSalary = " + baseSalary +
", dateOfHire = " + dateOfHire +
'}';
}
}