- public RuralHouse addRuralHouse(int houseNumber, String description, String city) {
- RuralHouse rh=new RuralHouse(houseNumber, this, description, city);
+ public RuralHouse addRuralHouse(int houseNumber, String town, int nRooms,
+ int nKitchens, int nBaths, int nLivings, int nParkings) {
+ RuralHouse rh = new RuralHouse(houseNumber, this, town, nRooms,
+ nKitchens, nBaths, nLivings, nParkings);
+ ruralHouses.add(rh);
+ return rh;
+ }
+
+ public RuralHouse addRuralHouse(int houseNumber, String description,
+ String town, int nRooms, int nKitchens, int nBaths, int nLivings,
+ int nParkings) {
+ RuralHouse rh = new RuralHouse(houseNumber, this, description, town,
+ nRooms, nKitchens, nBaths, nLivings, nParkings);