package com.feige.beans;
public class Customerextends Person{
private StringcustomerId;
? ? ? ? private Stringphone;
? ? ? ? public Customer(){
}
public Customer(String customerId, String phoneId){
super();//調(diào)用父類結(jié)構(gòu)方法
? ? ? ? ? ? this.customerId = customerId;
? ? ? ? ? ? this.phone =phone;
? ? ? ? }
public Customer(String name, String sex, String pwd, String age){
this.customerId =customerId;
? ? ? ? ? ? this.phone =phone;
? ? ? ? }
@Override
? ? ? ? public StringtoString(){
return "Customer{"+
"customerId'"+customerId +'\'' +
",phone='" +phone +'\'' +
'}';
? ? ? ? }
public StringgetCustomerId(){
return customerId;
? ? ? ? }
public void setCustomerId(){
this.customerId =customerId;
? ? ? ? }
public StringgetPhone(){
return phone;
? ? ? ? }
public void setPhone(){
this.phone =phone;
? ? ? ? }
}