1 | public class B extends A {↵ | | 1 | public class Thing {↵
|
2 | private int count;↵ | | 2 | private long id;↵
|
3 | private Map map;↵ | | 3 | private String description;↵
|
4 | private String bName = "B Name";↵ | | 4 | private Being ↵
|
5 | ↵ | | 5 | owner;↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the description.↵
|
| | | 8 | */↵
|
6 | public int getCount() {↵ | | 9 | public String getDescription() {↵
|
7 | return count;↵ | | 10 | return ↵
|
8 | }↵ | | |
|
9 | ↵ | | 11 | description;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param description The description to set.↵
|
| | | 15 | */↵
|
10 | public void setCount(int count) {↵ | | 16 | public void set↵
|
11 | this.count = count;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | 17 | Description(String description) {↵
|
| | | 18 | this.description = description;↵
|
| | | 19 | }↵
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the id.↵
|
| | | 22 | */↵
|
14 | public Map getMap() {↵ | | 23 | public long getId() {↵
|
15 | return map;↵ | | 24 | return id;↵
|
16 | }↵ | | 25 | }↵
|
| | | 26 | /**↵
|
| | | 27 | * @param id The id to set.↵
|
| | | 28 | */↵
|
17 | public void setMap(Map map) {↵ | | 29 | public void set↵
|
18 | this.map = map;↵ | | |
|
19 | }↵ | | |
|
| | | 30 | Id(long id) {↵
|
| | | 31 | this.id = id;↵
|
| | | 32 | }↵
|
| | | 33 | /**↵
|
| | | 34 | * @return Returns the owner.↵
|
| | | 35 | */↵
|
20 | public String getBName() {↵ | | 36 | public Being getOwner() {↵
|
21 | return bName;↵ | | 37 | return ↵
|
22 | }↵ | | |
|
| | | 38 | owner;↵
|
| | | 39 | }↵
|
| | | 40 | /**↵
|
| | | 41 | * @param owner The owner to set.↵
|
| | | 42 | */↵
|
23 | public void setBName(String name) {↵ | | 43 | public void set↵
|
24 | bName = name | | 44 | Owner(Being owner) {↵
|
| | | 45 | this.owner = owner
|