标题:解释一下借口实例化的意思
取消只看楼主
弱智抓蛙男
Rank: 1
等 级:新手上路
帖 子:264
专家分:0
注 册:2006-11-24
 问题点数:0 回复次数:0 
解释一下借口实例化的意思
程序片段如下:
ActionListener WthUpdateHandler =
new ActionListener() {
public void actionPerformed(ActionEvent e) {
// code to process add new customer request
// fire event -- inform registered controllers
InfoController con;
for (int i=0; i<listeners.size(); i++){
System.out.println("View " + viewId +
": fire wthUpdate event");
con = (InfoController) listeners.get(i);
con.processWthUpdate(wthText.getText());
}
}
};

不明白把一个接口实例化了 是个什么意思
我只是知道把类实例化,不明白把接口实例化的用意
哪位大侠不吝赐教。
搜索更多相关主题的帖子: 实例 借口 意思 解释 
2006-11-29 18:40



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-106164-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.502304 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved