- public RuralHouse addRuralHouse(int houseNumber, String description, String city) {
- RuralHouse rh=new RuralHouse(houseNumber, this, description, city);
+
+
+ public RuralHouse addRuralHouse(int houseNumber, String description,
+ String town, int nRooms, int nKitchens, int nBaths, int nLivings,
+ int nParkings) {
+ HouseFeatures feature = new HouseFeatures(nRooms, nKitchens, nBaths, nLivings, nParkings);
+ RuralHouse rh = new RuralHouse(houseNumber, this, description, town,feature);