課程
/移動開發(fā)
/Android
/Android必學(xué)-異步加載
老師,android項(xiàng)目創(chuàng)建bean都不需要get,set方法是嗎?
2015-12-09
源自:Android必學(xué)-異步加載 2-2
正在回答
有啊 ?如下
?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; ????} }
拉丁貓 提問者
舉報
了解Android中的異步加載處理方法,這是面試問的最多的知識點(diǎn)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2015-12-09
有啊 ?如下