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