亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

關于老師寫的NewsBean的問題

老師,android項目創建bean都不需要get,set方法是嗎?

正在回答

1 回答

有啊 ?如下

?public?void?setChecked(boolean?isChecked)?{
????????this.isChecked?=?isChecked;
????}

????public?boolean?isChecked()?{
????????return?isChecked;
????}

????public?Bean()
????{

????}
????public?Bean(String?title,?String?desc,?String?time,?String?phone)
????{
????????super();
????????this.title?=?title;
????????this.desc?=?desc;
????????this.time?=?time;
????????this.phone?=?phone;
????}
????public?String?getTitle()
????{
????????return?title;
????}
????public?void?setTitle(String?title)
????{
????????this.title?=?title;
????}
????public?String?getDesc()
????{
????????return?desc;
????}
????public?void?setDesc(String?desc)
????{
????????this.desc?=?desc;
????}
????public?String?getTime()
????{
????????return?time;
????}
????public?void?setTime(String?time)
????{
????????this.time?=?time;
????}
????public?String?getPhone()
????{
????????return?phone;
????}
????public?void?setPhone(String?phone)
????{
????????this.phone?=?phone;
????}
}


0 回復 有任何疑惑可以回復我~
#1

拉丁貓 提問者

非常感謝!
2015-12-09 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Android必學-異步加載
  • 參與學習       50616    人
  • 解答問題       333    個

了解Android中的異步加載處理方法,這是面試問的最多的知識點

進入課程

關于老師寫的NewsBean的問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號