public class Address{
String address;
String zipCode;
public Address(){}
public Address(String address,String zipCode){
this.address = address;
this.zipCode = zipCode;
}
}
编程:创建一个Address类,描述如下: ①该类有两个属性: String类型的address,表示地址 String类型的zipCode,表示邮编 ②该类有两个构造方法: 无参构造方法 带有两
最新推荐文章于 2022-11-05 15:02:39 发布