➊
private String customerId; // 고객ID
private String name; // 고객 이름
private Address address; // 고객 주소 객체
private String phone; // 고객 전화번호
➋
public Customer() {
this.address= new Address();
}
➌
public Customer(String customerId, String name) {
this();
this.customerId = customerId;
this.name = name;
}
➍
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}