You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
759 B
31 lines
759 B
2 years ago
|
/*
|
||
|
* To change this license header, choose License Headers in Project Properties.
|
||
|
* To change this template file, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
package rulespecs2;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author denis
|
||
|
*/
|
||
|
public class Street extends District{
|
||
|
|
||
|
protected String nameStreet;
|
||
|
|
||
|
public Street(String nameStreet, String nameDistrict, String nameCity, String nameCountry) {
|
||
|
super(nameDistrict, nameCity, nameCountry);
|
||
|
this.nameStreet = nameStreet;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString() {
|
||
|
return "Street{" + "nameCountry=" + nameCountry + "nameCity=" + nameCity + "nameDistrict=" + nameDistrict + "nameStreet=" + nameStreet + '}';
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|