The implementation is as follow,
public class Window implements GUIComponent {
private int width:
private int height;
private int xPos;
private int yPos;
public Window(int width, int height) {
xPOS = 0;
yPos = 0;
this.width = width;
this.height = height;
}
public boolean open() {
System.out.printIn("Window opened");
return true:
}
public boolean close() {
System.out.println("Window closed');
return true;
}
public void resize(int wid, int hei) {
width = wid;
height = hei;
}
public void move(int ×, int y){
xPos = x;
yPos = y;
}
}
Learn more about such codes here https://brainly.com/question/14492046
#SPJ10