Define an interface GUIComponent consisting of four method declaration: open: void-returning, accepts no parameters close: both accepts no parameters, return boolean indicating whether or not the component is willing to be closed at that point (for example, a text window might have unsaved data and should not be closed) resize: void-returning accepts new width and height (integers) in that order move: void returning, accepts new x and y positions (in that order) respectively

Respuesta :

Answer:

interface GUIComponent{

  public void open();

  public boolean close();

  public void resize(int width, int height);

  public void move(int x, int y);

}

Explanation: