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