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