1 | public class C2 extends B {↵ | | 1 | public class Person {↵
|
2 | private String address;↵ | | 2 | private String name;↵
|
3 | private C1 c1;↵ | | 3 | private Date dob;↵
|
4 | private String c2Name;↵ | | 4 | private ↵
|
5 | private Collection c1s = new ArrayList();↵ | | |
|
6 | /**↵ | | |
|
7 | * Returns the address.↵ | | |
|
8 | * @return String↵ | | |
|
9 | */↵ | | |
|
10 | public String getAddress() {↵ | | |
|
11 | return address;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | /**↵ | | |
|
15 | * Sets the address.↵ | | |
|
16 | * @param address The address to set↵ | | |
|
17 | */↵ | | |
|
18 | public void setAddress(String address) {↵ | | |
|
19 | this.address = address;↵ | | |
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * @return Returns the c.↵ | | |
|
24 | */↵ | | |
|
25 | public C1 getC1() {↵ | | |
|
26 | return c1;↵ | | |
|
27 | }↵ | | |
|
|
28 | /**↵ | | |
|
29 | * @param c The c to set.↵ | | |
|
30 | */↵ | | |
|
31 | public void setC1(C1 c) {↵ | | |
|
32 | this.c1 = c;↵ | | |
|
33 | }↵ | | |
|
|
34 | /**↵ | | |
|
35 | * @return Returns the cs.↵ | | |
|
36 | */↵ | | |
|
37 | public Collection getC1s() {↵ | | |
|
38 | return c1s;↵ | | |
|
39 | }↵ | | |
|
|
40 | /**↵ | | |
|
41 | * @param cs The cs to set.↵ | | |
|
42 | */↵ | | |
|
43 | public void setC1s(Collection cs) {↵ | | |
|
44 | this.c1s = cs↵ | | 5 | Employee employee;↵
|
| | | 6 | private Customer customer;↵
|
| | | 7 | public Customer getCustomer() {↵
|
| | | 8 | return customer;↵
|
| | | 9 | }↵
|
| | | 10 | public void setCustomer(Customer customer) {↵
|
| | | 11 | this.customer = customer;↵
|
| | | 12 | }↵
|
| | | 13 | public Employee getEmployee() {↵
|
| | | 14 | return employee;↵
|
| | | 15 | }↵
|
| | | 16 | public void setEmployee(Employee employee) {↵
|
| | | 17 | this.employee = employee;↵
|
| | | 18 | }↵
|
| | | 19 | public String getName() {↵
|
| | | 20 | return name;↵
|
| | | 21 | }↵
|
| | | 22 | public void setName(String name) {↵
|
45 | ;↵ | | 23 | this.name = name;↵
|
46 | }↵ | | 24 | }↵
|
|
47 | public String getC2Name() {↵ | | 25 | public Date getDob() {↵
|
48 | return c2Name;↵ | | 26 | return dob;↵
|
49 | }↵ | | 27 | }↵
|
|
50 | public void setC2Name(String name) {↵ | | 28 | public void set↵
|
51 | c2Name = name | | 29 | Dob(Date dob) {↵
|
| | | 30 | this.dob = dob
|