Examlex

Solved

If the MakeMenuItem Method Is Called Four Times, at Most

question 56

Multiple Choice

If the makeMenuItem method is called four times, at most how many different actions can be performed by these four newly created MenuItem objects when the doSomethingElse method is called?
Public JMenuItem makeMenuItem(String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel) ;
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent mi.addActionListener(new MyMenuListener() ) ;
Return mi;
}
}


Definitions:

Related Questions