注意:此页面搜索的是所有试题
题目内容
(河南财经政法大学JAVA面向对象设计)
如果有一个对象象myListenerr((其中中myListenerr对象实现了了ActionListenerr接口),下列哪条语句使得得myListenerr对象能够接受处理来自于于smallButtonn按钮对象的动作
A.smallButton.add(myListener);
B.smallButton.addListener(myListener);
C.smallButton.addActionListener(myListener);
D.smallButton.addItem(myListener);
A.smallButton.add(myListener);
B.smallButton.addListener(myListener);
C.smallButton.addActionListener(myListener);
D.smallButton.addItem(myListener);
参考答案
![](/lib/img/vx.png)
![](/lib/img/EnteWeChat.png)