1 | public class Customer extends Person {↵ | | 1 | public class Person {
↵
|
2 | private Employee salesperson;↵ | | 2 | private ↵
|
3 | private String comments;↵ | | |
|
|
4 | /**↵ | | |
|
5 | * @return Returns the salesperson.↵ | | |
|
6 | */↵ | | |
|
7 | public Employee getSalesperson↵ | | 3 | Long id;↵
|
| | | 4 | private Identity identity;↵
|
| | | 5 | ↵
|
8 | () {↵ | | 6 | public Long getId() {
↵
|
9 | return salesperson;↵ | | 7 | return ↵
|
10 | }↵ | | |
|
11 | /**↵ | | |
|
12 | * @param salesperson The salesperson to set.↵ | | |
|
13 | */↵ | | |
|
14 | public void setSalesperson(Employee salesperson↵ | | 8 | id;↵
|
| | | 9 | }↵
|
15 | ) {↵ | | 10 | public void setId(Long id) {
↵
|
16 | this.salesperson = salesperson;↵ | | 11 | this.↵
|
17 | }↵ | | |
|
18 | /**↵ | | |
|
19 | * @return Returns the comments.↵ | | |
|
20 | */↵ | | |
|
21 | public String getComments↵ | | 12 | id = id;↵
|
| | | 13 | }↵
|
22 | () {↵ | | 14 | public Identity getIdentity() {
↵
|
23 | return comments;↵ | | 15 | return ↵
|
24 | }↵ | | |
|
25 | /**↵ | | |
|
26 | * @param comments The comments to set.↵ | | |
|
27 | */↵ | | |
|
28 | public void setComments(String comments↵ | | 16 | identity;↵
|
| | | 17 | }↵
|
29 | ) {↵ | | 18 | public void setIdentity(Identity identity) {
↵
|
30 | this.comments = comments;↵ | | 19 | this.identity = identity;
↵
|
31 | | | 20 |
|