1 | public class Account {
↵ | | 1 | public class Human {↵
|
2 | private String accountId;
↵ | | 2 | private Long id;↵
|
3 | private Customer customer;↵ | | 3 | private ↵
|
4 | private Person person;↵ | | |
|
5 | private char type;↵ | | |
|
6 | /**↵ | | |
|
7 | * @return Returns the user.↵ | | |
|
8 | */↵ | | |
|
9 | public Customer getCustomer() {↵ | | |
|
10 | return customer;↵ | | |
|
11 | }↵ | | |
|
12 | /**↵ | | |
|
13 | * @param user The user to set.↵ | | |
|
14 | */↵ | | |
|
15 | public void setCustomer(Customer user↵ | | 4 | String name;↵
|
| | | 5 | private char sex;↵
|
| | | 6 | private String address;↵
|
| | | 7 | ↵
|
16 | ) {
↵ | | 8 | public void setAddress(String address) {↵
|
17 | this.customer = user;↵ | | 9 | this.↵
|
18 | }↵ | | |
|
19 | /**↵ | | |
|
20 | * @return Returns the accountId.↵ | | |
|
21 | */
↵ | | 10 | address = address;↵
|
| | | 11 | }↵
|
22 | public String getAccountId() {
↵ | | 12 | public String getAddress() {↵
|
23 | return accountId;↵ | | 13 | return a↵
|
24 | }↵ | | |
|
25 | /**↵ | | |
|
26 | * @param accountId The accountId to set.↵ | | |
|
27 | */↵ | | |
|
28 | public void setAccountId(String accountId↵ | | 14 | ddress;↵
|
| | | 15 | }↵
|
29 | ) {
↵ | | 16 | public void setSex(char sex) {↵
|
30 | this.accountId = accountId;↵ | | 17 | this.↵
|
31 | }↵ | | |
|
32 | /**↵ | | |
|
33 | * @return Returns the type.↵ | | |
|
34 | */
↵ | | 18 | sex = sex;↵
|
| | | 19 | }↵
|
35 | public char getType() {
↵ | | 20 | public char getSex() {↵
|
36 | return type;↵ | | 21 | return ↵
|
37 | }↵ | | |
|
38 | /**↵ | | |
|
39 | * @param type The type to set.↵ | | |
|
40 | */
↵ | | 22 | sex;↵
|
| | | 23 | }↵
|
41 | public void setType(char type) {
↵ | | 24 | public void setName(String name) {↵
|
42 | this.type = type;
↵ | | 25 | this.name = name;↵
|
43 | }
↵ | | 26 | }↵
|
44 | public Person getPerson() {
↵ | | 27 | public String getName() {↵
|
45 | return person;↵ | | 28 | return ↵
|
46 | }↵ | | |
|
47 |
↵ | | 29 | name;↵
|
| | | 30 | }↵
|
48 | public void setPerson(Person person) {
↵ | | 31 | public void setId(Long id) {↵
|
49 | this.person = person | | 32 | this.id = id;↵
|
| | | 33 | }↵
|
| | | 34 | public Long getId() {↵
|
| | | 35 | return id
|