1 | public class Customer {↵ | | 1 | public class ↵
|
|
|
|
2 | public Customer() {↵ | | |
|
|
3 | super();↵ | | |
|
|
4 | }↵ | | |
|
|
|
|
5 | public Customer↵ | | 2 | Person {↵
|
| | | 3 | private String name;↵
|
| | | 4 | private Date dob;↵
|
| | | 5 | private String currentAddress;↵
|
| | | 6 | Person() {}↵
|
6 | (String orgName, String custName, String add) {↵ | | 7 | public Person(String name, Date dob, String address) {↵
|
|
7 | this.orgName = orgName;↵ | | 8 | this.name = name;↵
|
|
8 | this.customerName = custName;↵ | | 9 | this.↵
|
|
9 | this.address = add;↵ | | |
|
|
10 | }↵ | | |
|
|
|
|
11 | private String orgName;↵ | | |
|
|
12 | private String customerName;↵ | | |
|
|
13 | private String↵ | | 10 | dob = dob;↵
|
14 | address;↵ | | 11 | this.currentAddress = address;↵
|
|
|
| | | 12 | }↵
|
15 | public String getAddress() {↵ | | 13 | public Date getDob() {↵
|
|
16 | return address;↵ | | 14 | return dob;↵
|
|
17 | }↵ | | 15 | }↵
|
|
|
|
18 | public void setAddress(String address) {↵ | | 16 | public void setDob(Date dob) {↵
|
|
19 | this.address = address;↵ | | 17 | this.↵
|
|
20 | }↵ | | |
|
|
|
| | | 18 | dob = dob;↵
|
| | | 19 | }↵
|
21 | public String getCustomerName() {↵ | | 20 | public String getName() {↵
|
|
22 | return customerName;↵ | | 21 | return name;↵
|
|
23 | }↵ | | 22 | }↵
|
|
|
|
24 | public void setCustomerName(String customerName) {↵ | | 23 | public void setName(String name) {↵
|
|
25 | this.customerName = customerName;↵ | | 24 | this.name = name;↵
|
|
26 | }↵ | | 25 | }↵
|
|
|
|
27 | public String getOrgName() {↵ | | 26 | public String getCurrentAddress() {↵
|
|
28 | return orgName;↵ | | 27 | return ↵
|
|
29 | }↵ | | |
|
|
|
|
30 | public void setOrgName(String orgName↵ | | 28 | currentAddress;↵
|
| | | 29 | }↵
|
31 | ) {↵ | | 30 | public void setCurrentAddress(String currentAddress) {↵
|
|
32 | this.orgName = orgName | | 31 | this.currentAddress = currentAddress
|