package second.feuGe;
//客户类
public class Customer extends Person{
private String CustomerId;//客户ID
private String phone;//手机号
//无参构造器方法
public Customer() {
}
//有参构造器方法
public Customer(String CustomerId,String phone) {
super();//父类无参构造器方法
this.CustomerId = CustomerId;
this.phone = phone;
}
//获取客户类的对象
public static Customer bulider() {
return new Customer();
}
public Customer CustomerId(String CustomerId) {
this.CustomerId = CustomerId;
return this;
}
public Customer phone(String phone) {
this.phone = phone;
return this;
}
@Override
public String toString() {
return "用户信息[编号="+this.CustomerId+",姓名="+super.getName()+",性别="+super.getSex()+",年龄="+super.getAge()+",手机号码="+this.phone+"]";
}
public String getCustomerId() {
return CustomerId;
}
public void setCustomerId(String customerId) {
CustomerId = customerId;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}