2021-04-25

package com.feige.beans;

public class Customerextends Person{

private StringcustomerId;

        private Stringphone;

        public Customer(){

}

public Customer(String customerId, String phoneId){

super();//调用父类结构方法

            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;

        }

}

你可能感兴趣的:(2021-04-25)