1 | public class Employee extends Person {↵ | | 1 | public class Joiner {↵
|
2 | private String title;↵ | | 2 | private ↵
|
3 | private BigDecimal salary;↵ | | |
|
4 | private Employee manager;↵ | | |
|
5 | /**↵ | | |
|
6 | * @return Returns the title.↵ | | |
|
7 | */↵ | | 3 | Long id;↵
|
| | | 4 | private String name;↵
|
| | | 5 | private String joinedName;↵
|
|
8 | public String getTitle() {↵ | | 6 | public Long getId() {↵
|
9 | return title;↵ | | 7 | return ↵
|
10 | }↵ | | |
|
11 | /**↵ | | |
|
12 | * @param title The title to set.↵ | | |
|
13 | */↵ | | 8 | id;↵
|
| | | 9 | }↵
|
|
14 | public void setTitle(String title) {↵ | | 10 | public void setId(Long id) {↵
|
15 | this.title = title;↵ | | 11 | this.↵
|
16 | }↵ | | |
|
17 | /**↵ | | |
|
18 | * @return Returns the manager.↵ | | |
|
19 | */↵ | | 12 | id = id;↵
|
| | | 13 | }↵
|
|
20 | public Employee getManager() {↵ | | 14 | public String getName() {↵
|
21 | return manager;↵ | | 15 | return ↵
|
22 | }↵ | | |
|
23 | /**↵ | | |
|
24 | * @param manager The manager to set.↵ | | |
|
25 | */↵ | | |
|
26 | public void setManager(Employee manager↵ | | 16 | name;↵
|
| | | 17 | }↵
|
|
27 | ) {↵ | | 18 | public void setName(String name) {↵
|
28 | this.manager = manager;↵ | | 19 | this.name = ↵
|
29 | }↵ | | |
|
30 | /**↵ | | |
|
31 | * @return Returns the salary.↵ | | |
|
32 | */↵ | | |
|
33 | public BigDecimal getSalary() {↵ | | |
|
34 | return salary;↵ | | |
|
35 | }↵ | | |
|
36 | /**↵ | | |
|
37 | * @param salary The salary to set.↵ | | |
|
38 | */↵ | | |
|
39 | public void setSalary(BigDecimal salary) {↵ | | |
|
40 | this.salary = salary↵ | | 20 | name;↵
|
| | | 21 | }↵
|
|
| | | 22 | public String getJoinedName() {↵
|
| | | 23 | return joinedName;↵
|
| | | 24 | }↵
|
|
| | | 25 | public void setJoinedName(String joinedName) {↵
|
41 | ;↵ | | 26 | this.joinedName = joinedName;↵
|
42 | | | 27 |
|