RRRRHHHH_Code
Diff Revisions
d23286 ...
vs
553879 ...
for ruralHouses/src/domain/Owner.java
|
@@ -43,8 +43,8 @@ |
43 |
43 |
|
|
44 |
44 |
|
public RuralHouse addRuralHouse(int houseNumber, String town, int nRooms, |
45 |
45 |
|
int nKitchens, int nBaths, int nLivings, int nParkings) { |
46 |
|
- |
RuralHouse rh = new RuralHouse(houseNumber, this, town, nRooms, |
47 |
|
- |
nKitchens, nBaths, nLivings, nParkings); |
|
46 |
+ |
HouseFeatures feature = new HouseFeatures(nRooms, nKitchens, nBaths, nLivings, nParkings); |
|
47 |
+ |
RuralHouse rh = new RuralHouse(houseNumber, this, town,feature); |
48 |
48 |
|
ruralHouses.add(rh); |
49 |
49 |
|
return rh; |
50 |
50 |
|
} |
|
@@ -52,8 +52,8 @@ |
52 |
52 |
|
public RuralHouse addRuralHouse(int houseNumber, String description, |
53 |
53 |
|
String town, int nRooms, int nKitchens, int nBaths, int nLivings, |
54 |
54 |
|
int nParkings) { |
55 |
|
- |
RuralHouse rh = new RuralHouse(houseNumber, this, description, town, |
56 |
|
- |
nRooms, nKitchens, nBaths, nLivings, nParkings); |
|
55 |
+ |
HouseFeatures feature = new HouseFeatures(nRooms, nKitchens, nBaths, nLivings, nParkings); |
|
56 |
+ |
RuralHouse rh = new RuralHouse(houseNumber, this, description, town,feature); |
57 |
57 |
|
ruralHouses.add(rh); |
58 |
58 |
|
return rh; |
59 |
59 |
|
} |