1 | public class Person {↵ | | 1 | public class Customer implements Serializable {↵
|
|
2 | private String name;↵ | | 2 | private String name;↵
|
3 | private Date dob;↵ | | 3 | private ↵
|
4 | private Employee employee;↵ | | |
|
5 | private Customer customer;↵ | | |
|
6 | public Customer getCustomer() {↵ | | |
|
7 | return customer;↵ | | |
|
8 | }↵ | | |
|
9 | public void setCustomer(Customer customer) {↵ | | |
|
10 | this.customer = customer;↵ | | |
|
11 | }↵ | | |
|
12 | public Employee getEmployee↵ | | 4 | String customerId;↵
|
| | | 5 | private Address billingAddress;↵
|
| | | 6 | private Address shippingAddress;↵
|
|
| | | 7 | public Address getBillingAddress() {↵
|
| | | 8 | return billingAddress;↵
|
| | | 9 | }↵
|
| | | 10 | public void setBillingAddress(Address billingAddress) {↵
|
| | | 11 | this.billingAddress = billingAddress;↵
|
| | | 12 | }↵
|
13 | () {↵ | | 13 | public String getCustomerId() {↵
|
14 | return employee;↵ | | 14 | return customerId;↵
|
15 | }↵ | | 15 | }↵
|
16 | public void setEmployee(Employee employee) {↵ | | 16 | public void set↵
|
17 | this.employee = employee↵ | | 17 | CustomerId(String customerId) {↵
|
18 | ;↵ | | 18 | this.customerId = customerId;↵
|
19 | }↵ | | 19 | }↵
|
20 | public String getName() {↵ | | 20 | public String getName() {↵
|
21 | return name;↵ | | 21 | return name;↵
|
22 | }↵ | | 22 | }↵
|
23 | public void setName(String name) {↵ | | 23 | public void setName(String name) {↵
|
24 | this.name = name;↵ | | 24 | this.name = name;↵
|
25 | }↵ | | 25 | }↵
|
26 | public Date getDob() {↵ | | 26 | public ↵
|
27 | return dob;↵ | | |
|
28 | }↵ | | |
|
29 | public void setDob(Date dob) {↵ | | |
|
30 | this.dob = dob↵ | | 27 | Address getShippingAddress() {↵
|
| | | 28 | return shippingAddress;↵
|
| | | 29 | }↵
|
| | | 30 | public void setShippingAddress(Address shippingAddress) {↵
|
31 | ;↵ | | 31 | this.shippingAddress = shippingAddress;↵
|
32 | | | 32 |
|