日期:2014-05-20 浏览次数:20682 次
/** * @author xxx * */ public class ZuHu { private int bianHao; private String xingMing; private String shenFenZhengHaoMa; private String lianXiFangShi; private String lianXiDiZhi; private String zuLinCheXing; /** * @param bianHao * @param xingMing * @param shenFenZhengHaoMa */ public ZuHu(int bianHao, String xingMing, String shenFenZhengHaoMa){ this.bianHao = bianHao; this.xingMing = xingMing; this.shenFenZhengHaoMa = shenFenZhengHaoMa; } /** * @return the bianHao */ public int getBianHao() { return bianHao; } /** * @return the xingMing */ public String getXingMing() { return xingMing; } /** * @return the shenFenZhengHaoMa */ public String getShenFenZhengHaoMa() { return shenFenZhengHaoMa; } /** * @return the lianXiFangShi */ public String getLianXiFangShi() { return lianXiFangShi; } /** * @return the lianXiDiZhi */ public String getLianXiDiZhi() { return lianXiDiZhi; } /** * @return the zuLinCheXing */ public String getZuLinCheXing() { return zuLinCheXing; } /** * @param lianXiFangShi */ public void setLianXiFangShi(String lianXiFangShi){ this.lianXiFangShi = lianXiFangShi; } /** * @param zuLinCheXing */ public void setZuLinCheXing(String zuLinCheXing){ this.zuLinCheXing = zuLinCheXing; } /** * @param lianXiDiZhi */ public void setLianXiDiZhi(String lianXiDiZhi){ this.lianXiDiZhi = lianXiDiZhi; } }
------解决方案--------------------
public class Renter { private String cid; private String name; private String cardid; private String tel; private String address; private String kind; public Renter(String cid, String name, String cardid, String tel, String address, String kind) { this.cid = cid; this.name = name; this.cardid = cardid; this.tel = tel; this.address = address; this.kind = kind; } /** * 修改改联系方式 */ public void setTel(String tel) { this.tel = tel; } /** * 修改租车类型 */ public void setKind(String kind) { this.kind = kind; } }
------解决方案--------------------
这个很简单啊
怎么这么像伸手党
学校布置的作业来要的?
少壮不努力,老大徒伤悲!
如下:
public class Renter {
private String cid;
private String name;
private String cardid;
private String tel;
private String address;
private String kind;
public Renter(String cid, String name, String cardid, String tel,
String address, String kind) {
this.cid = cid;
this.name = name;
this.cardid = cardid;
this.tel = tel;
this.address = address;
this.kind = kind;
}
/**
* 修改改联系方式
*/
public void setTel(String tel) {
this.tel = tel;
}
/**
* 修改租车类型
*/
public void setKind(String kind) {
this.kind = kind;
}
}
------解决方案--------------------
public class Qichezudai {
private String Bianhao;
private String Xingming;
private String ShenfengId;
private String Lianxifangshi;