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