1 | public class C2 extends B {↵ | | 1 | public class Alien {↵
|
2 | private String address;↵ | | 2 | private ↵
|
3 | private C1 c1↵ | | 3 | Long id;↵
|
4 | ;↵ | | 4 | private String identity;↵
|
5 | private String c2Name;↵ | | 5 | private String planet;↵
|
6 | private Collection c1s = new ArrayList();↵ | | 6 | private ↵
|
7 | /**↵ | | |
|
8 | * Returns the address.↵ | | |
|
9 | * @return String↵ | | |
|
10 | */↵ | | 7 | String species;↵
|
| | | 8 | ↵
|
| | | 9 | public void setIdentity(String identity) {↵
|
| | | 10 | this.identity = identity;↵
|
| | | 11 | }↵
|
11 | public String getAddress() {↵ | | 12 | public String getIdentity() {↵
|
12 | return address;↵ | | 13 | return ↵
|
13 | }↵ | | |
|
14 | ↵ | | |
|
15 | /**↵ | | |
|
16 | * Sets the address.↵ | | |
|
17 | * @param address The address to set↵ | | |
|
18 | */↵ | | 14 | identity;↵
|
| | | 15 | }↵
|
19 | public void setAddress(String address) {↵ | | 16 | public void setSpecies(String species) {↵
|
20 | this.address = address;↵ | | 17 | this.↵
|
21 | }↵ | | |
|
22 | ↵ | | |
|
23 | /**↵ | | |
|
24 | * @return Returns the c.↵ | | |
|
25 | */↵ | | |
|
26 | public C1 getC1() {↵ | | |
|
27 | return c1;↵ | | |
|
28 | }↵ | | |
|
|
29 | /**↵ | | |
|
30 | * @param c The c to set.↵ | | |
|
31 | */↵ | | |
|
32 | public void setC1(C1 c) {↵ | | |
|
33 | this.c1 = c;↵ | | |
|
34 | }↵ | | |
|
|
35 | /**↵ | | |
|
36 | * @return Returns the cs.↵ | | |
|
37 | */↵ | | |
|
38 | public Collection getC1s() {↵ | | |
|
39 | return c1s;↵ | | |
|
40 | }↵ | | |
|
|
41 | /**↵ | | |
|
42 | * @param cs The cs to set.↵ | | |
|
43 | */↵ | | 18 | species = species;↵
|
| | | 19 | }↵
|
| | | 20 | public String getSpecies() {↵
|
| | | 21 | return species;↵
|
| | | 22 | }↵
|
| | | 23 | public void setPlanet(String planet) {↵
|
| | | 24 | this.planet = planet;↵
|
| | | 25 | }↵
|
| | | 26 | public String getPlanet() {↵
|
| | | 27 | return planet;↵
|
| | | 28 | }↵
|
44 | public void setC1s(Collection cs) {↵ | | 29 | public void setId(Long id) {↵
|
45 | this.c1s = cs;↵ | | 30 | this.id = id;↵
|
46 | }↵ | | 31 | }↵
|
|
47 | public String getC2Name() {↵ | | 32 | public Long getId() {↵
|
48 | return c2Name;↵ | | 33 | return ↵
|
49 | }↵ | | |
|
|
50 | public void setC2Name(String name) {↵ | | |
|
51 | c2Name = name | | 34 | id
|