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