RRRRHHHH_Code
Diff Revisions
a92725 ...
vs
7c0734 ...
for ruralHouses/src/domain/Owner.java
|
@@ -43,11 +43,11 @@ |
43 |
43 |
|
|
44 |
44 |
|
|
45 |
45 |
|
|
46 |
|
- |
public RuralHouse addRuralHouse(int houseNumber, String description, |
|
46 |
+ |
public RuralHouse addRuralHouse(String houseName, String description, |
47 |
47 |
|
String town, int nRooms, int nKitchens, int nBaths, int nLivings, |
48 |
48 |
|
int nParkings) { |
49 |
49 |
|
HouseFeatures feature = new HouseFeatures(nRooms, nKitchens, nBaths, nLivings, nParkings); |
50 |
|
- |
RuralHouse rh = new RuralHouse(houseNumber, this, description, town,feature); |
|
50 |
+ |
RuralHouse rh = new RuralHouse(houseName, this, description, town,feature); |
51 |
51 |
|
ruralHouses.add(rh); |
52 |
52 |
|
return rh; |
53 |
53 |
|
} |