JAVA案例分析(1)
面向对象
编写并测试一个代表地址的Address类,地址信息由国家、省份、城市、街道、邮编组成,并可以返回完整的地址信息。
class Address{
private String country;
private String province;
private String city;
private String street;
private String zipcode;
public Address(){
}
public Address(String country,String province,String city,String street,String zipcode){
this.country=country;
this.province=province;
this.city=city