1 | public static final class Component {↵ | | 1 | public class Customer extends Person {↵
|
2 | private Calendar cal;↵ | | 2 | private Employee salesperson;↵
|
3 | private Float floaty;↵ | | 3 | private String comments;↵
|
4 | ↵ | | |
|
5 | /**↵ | | 4 | /**↵
|
6 | * Returns the cal.↵ | | 5 | * @return Returns the sal↵
|
7 | * @return Calendar↵ | | |
|
8 | ↵ | | 6 | esperson.↵
|
9 | */↵ | | 7 | */↵
|
10 | public Calendar getCal() {↵ | | 8 | public Employee getSalesperson() {↵
|
11 | return cal;↵ | | 9 | return salesperson;↵
|
12 | }↵ | | 10 | }↵
|
13 | ↵ | | 11 | ↵
|
14 | /**↵ | | |
|
15 | * Sets the cal.↵ | | |
|
16 | ↵ | | 12 | /**↵
|
17 | * @param cal The cal to set↵ | | 13 | * @param salesperson The salesperson to set.↵
|
18 | */↵ | | 14 | */↵
|
19 | public void setCal(Calendar cal) {↵ | | 15 | public void setSalesperson(Employee salesperson) {↵
|
20 | this.cal = cal;↵ | | 16 | this.salesperson = salesperson;↵
|
21 | }↵ | | 17 | }↵
|
22 | ↵ | | 18 | ↵
|
23 | /**↵ | | 19 | /**↵
|
24 | * Returns the floaty.↵ | | 20 | * @return Returns the ↵
|
25 | * @return Float↵ | | |
|
26 | ↵ | | 21 | comments.↵
|
27 | */↵ | | 22 | */↵
|
28 | public Float getFloaty() {↵ | | 23 | public String getComments() {↵
|
29 | return floaty;↵ | | 24 | return comments;↵
|
30 | }↵ | | 25 | }↵
|
31 | ↵ | | 26 | ↵
|
32 | /**↵ | | |
|
33 | * Sets the floaty.↵ | | |
|
34 | ↵ | | 27 | /**↵
|
35 | * @param floaty The floaty to set↵ | | 28 | * @param comments The comments to set.↵
|
36 | */↵ | | 29 | */↵
|
37 | public void setFloaty(Float floaty) {↵ | | 30 | public void setComments(String comments) {↵
|
38 | this.floaty = floaty | | 31 | this.comments = comments
|