android set和get问题

weng4570 发布于 2013/11/29 14:21
阅读 975
收藏 0

我不解为什么要对这些年龄、密码等等要set和get;求解释一下;能详细一点更好;谢谢 

 private Group<Flight> favoriteFlightList;

    
private String useraccount;//用户帐号
private int age;//年龄
private String password;//密码
private String logo;//头像路径
private String logoStatu;//头像状态
private String sex;//性别
private String local_city;//所在城市
private String telphone;//用户电话
private String permanent_city;//常住地城市
private String occupation;//用户职业
private String interest;//用户兴趣爱好
private String signature;//用户签名
private String login_time;//用户登录时间
private String user_time;//用户注册时间
private String islocal;//是否为本地用户
private String association_user;//关联用户
private String online;//在线状态
private String contact;//联系人
private String job;//联系人
private String lastMesage;
private String sina;
private String avator;
private String shareContent;//分享的内容
private String sharePathway;//分享的途径
private String shareDate;//分享的途径


public String getShareDate() {
return shareDate;
}


public void setShareDate(String shareDate) {
this.shareDate = shareDate;
}


public String getAvator() {
return avator;
}


public String getShareContent() {
return shareContent;
}


public void setShareContent(String shareContent) {
this.shareContent = shareContent;
}


public String getSharePathway() {
return sharePathway;
}


public void setSharePathway(String sharePathway) {
this.sharePathway = sharePathway;
}


public void setAvator(String avator) {
this.avator = avator;
}


public String getAvatorstatus() {
return avatorstatus;
}


public void setAvatorstatus(String avatorstatus) {
this.avatorstatus = avatorstatus;
}


private String avatorstatus;

    
public String getLastMesage() {
return lastMesage;
}


public void setLastMesage(String lastMesage) {
this.lastMesage = lastMesage;
}


public String getSina() {
return sina;
}


public void setSina(String sina) {
this.sina = sina;
}


public User() {
}

public String getJob() {
return job;
}

加载中
返回顶部
顶部