A good answer might be:

Since buttonDemo implements the ActionListener interface, it must define each method in the interface.

Implementing an Interface

For the ActionListener interface, there is only one method: actionPerformed(). Here is the program with several blanks:

public class buttonDemo extends Frame implements _________________
{
  Button bChange = new Button("Click Me!"); // construct a Button

  buttonDemo()                     // constructor for buttonDemo
  {
    setLayout( new FlowLayout() ); // choose the layout manager 
    __________( bChange );         // add the button to the container
  }
   
  public void ________________( ActionEvent evt)
  {
     . . . . . .
  }

  public static void main ( String[] args )
  {
    buttonDemo frm = new buttonDemo();
      . . . . .
  }
}

QUESTION 6:

Fill in the blue blanks. Don't fill in the ". . . . . "

Click Here after you have answered the question