RRRRHHHH_Code
Diff Revisions
553879 ...
vs
a92725 ...
for ruralHouses/src/domain/Owner.java
|
@@ -37,17 +37,11 @@ |
37 |
37 |
|
this.bankAccount = bankAccount; |
38 |
38 |
|
} |
39 |
39 |
|
|
40 |
|
- |
public Vector<RuralHouse> getRuralHouses() { |
41 |
|
- |
return ruralHouses; |
|
40 |
+ |
public Vector<RuralHouse> getRuralHouses(){ |
|
41 |
+ |
return this.ruralHouses; |
42 |
42 |
|
} |
43 |
43 |
|
|
44 |
|
- |
public RuralHouse addRuralHouse(int houseNumber, String town, int nRooms, |
45 |
|
- |
int nKitchens, int nBaths, int nLivings, int nParkings) { |
46 |
|
- |
HouseFeatures feature = new HouseFeatures(nRooms, nKitchens, nBaths, nLivings, nParkings); |
47 |
|
- |
RuralHouse rh = new RuralHouse(houseNumber, this, town,feature); |
48 |
|
- |
ruralHouses.add(rh); |
49 |
|
- |
return rh; |
50 |
|
- |
} |
|
44 |
+ |
|
51 |
45 |
|
|
52 |
46 |
|
public RuralHouse addRuralHouse(int houseNumber, String description, |
53 |
47 |
|
String town, int nRooms, int nKitchens, int nBaths, int nLivings, |