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