1 | public class Person {
↵ | | 1 | public class Being {↵
|
2 | private Long id;
↵ | | 2 | private long id;↵
|
3 | private String name;
↵ | | 3 | private String identity;↵
|
4 | private BankAccount bankAccount;↵ | | 4 | private ↵
|
|
5 | /**↵ | | |
|
6 | * @return Returns the id.↵ | | |
|
7 | */↵ | | |
|
8 | public Long getId() {↵ | | |
|
9 | return id;↵ | | |
|
10 | }↵ | | |
|
11 | /**↵ | | |
|
12 | * @param id The id to set.↵ | | |
|
13 | */↵ | | |
|
14 | public void setId(Long id↵ | | 5 | String location;↵
|
| | | 6 | private String species;↵
|
| | | 7 | ↵
|
15 | ) {
↵ | | 8 | public void setLocation(String location) {↵
|
16 | this.id = id;↵ | | 9 | this.↵
|
17 | }↵ | | |
|
18 | /**↵ | | |
|
19 | * @return Returns the name.↵ | | |
|
20 | */
↵ | | 10 | location = location;↵
|
| | | 11 | }↵
|
21 | public String getName() {
↵ | | 12 | public String getLocation() {↵
|
22 | return name;↵ | | 13 | return ↵
|
23 | }↵ | | |
|
24 | /**↵ | | |
|
25 | * @param name The name to set.↵ | | |
|
26 | */
↵ | | 14 | location;↵
|
| | | 15 | }↵
|
27 | public void setName(String name) {
↵ | | 16 | public void setSpecies(String species) {↵
|
28 | this.name = name;↵ | | 17 | this.↵
|
29 | }↵ | | |
|
|
30 | public BankAccount getBankAccount↵ | | 18 | species = species;↵
|
| | | 19 | }↵
|
31 | () {
↵ | | 20 | public String getSpecies() {↵
|
32 | return bankAccount;
↵ | | 21 | return species;↵
|
33 | }
↵ | | 22 | }↵
|
34 | public void setBankAccount(BankAccount bankAccount) {
↵ | | 23 | public void setIdentity(String identity) {↵
|
35 | this.bankAccount = bankAccount | | 24 | this.identity = identity;↵
|
| | | 25 | }↵
|
| | | 26 | public String getIdentity() {↵
|
| | | 27 | return identity
|