作者TonyQ (骨头)
站内java
标题Re: [问题] 请问interface到底是做什麽用的?
时间Fri Apr 14 12:24:34 2006
※ 引述《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