1 | public class Person {↵ | | 1 | public class Alien {↵
|
2 | private String name;↵ | | 2 | private ↵
|
3 | private Date dob;↵ | | |
|
4 | private Employee employee;↵ | | |
|
5 | private Customer customer;↵ | | |
|
6 | public Customer getCustomer() {↵ | | |
|
7 | return customer↵ | | 3 | Long id;↵
|
| | | 4 | private String identity;↵
|
| | | 5 | private String planet;↵
|
8 | ;↵ | | 6 | private String species;↵
|
9 | }↵ | | 7 | ↵
|
10 | public void setCustomer(Customer customer) {↵ | | 8 | public void set↵
|
11 | this.customer = customer;↵ | | |
|
12 | }↵ | | |
|
13 | public Employee getEmployee↵ | | 9 | Identity(String identity) {↵
|
| | | 10 | this.identity = identity;↵
|
| | | 11 | }↵
|
14 | () {↵ | | 12 | public String getIdentity() {↵
|
15 | return employee;↵ | | 13 | return identity;↵
|
16 | }↵ | | 14 | }↵
|
17 | public void setEmployee(Employee employee) {↵ | | 15 | public void setSpecies(String species) {↵
|
18 | this.employee = employee;↵ | | 16 | this.species = species;↵
|
19 | }↵ | | 17 | }↵
|
20 | public String getName() {↵ | | 18 | public String getSpecies() {↵
|
21 | return name;↵ | | 19 | return species;↵
|
22 | }↵ | | 20 | }↵
|
23 | public void setName(String name) {↵ | | 21 | public void setPlanet(String planet) {↵
|
24 | this.name = name;↵ | | 22 | this.↵
|
25 | }↵ | | |
|
26 | public Date getDob↵ | | 23 | planet = planet;↵
|
| | | 24 | }↵
|
27 | () {↵ | | 25 | public String getPlanet() {↵
|
28 | return dob;↵ | | 26 | return planet;↵
|
29 | }↵ | | 27 | }↵
|
30 | public void setDob(Date dob) {↵ | | 28 | public void setId(Long id) {↵
|
31 | this.dob = dob | | 29 | this.id = id;↵
|
| | | 30 | }↵
|
| | | 31 | public Long getId() {↵
|
| | | 32 | return id
|