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