Re: [問題] 請問interface到底是做什麼用的?
※ 引述《qrtt1 (隱者)》之銘言:
: ※ 引述《kazenol (隨便啦)》之銘言:
: : 要寫自己的方法。
: 試著寫寫Swing
: 有許多用到"介面多重繼承的機會"
: 先去用這樣的成品
: 再來想他的模型
對
比方說每一個GUI的
ActionListener
MouseListener
幾乎都是不一樣的
這時候這種機制就很重要~
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.pratice()); | Bone everything
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.240.57
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 15 之 33 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章