注意:此页面搜索的是所有试题
如果有一个对象象myListenerr((其中中myListenerr对象实现了了ActionListenerr接口),下列哪条语句使得得myListenerr对象能够接受处理来自于于smallButtonn按钮对象的动作
A.smallButton.add(myListener);
B.smallButton.addListener(myListener);
C.smallButton.addActionListener(myListener);
D.smallButton.addItem(myListener);

参考答案