206k views
1 vote
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

User Jos Vinke
by
5.8k points

1 Answer

4 votes

Answer:

interface GUIComponent{

public void open();

public boolean close();

public void resize(int width, int height);

public void move(int x, int y);

}

Step-by-step explanation:

User Movermeyer
by
5.8k points