package awb; import java.awt.*; public abstract class GraphicsObject extends Object { protected int myX=0; protected int myY=0; protected int myWidth=0; protected int myHeight=0; protected Color myColor = Color.black; public abstract void draw(Graphics g); public int getX() { return myX; } public int getY() { return myY; } public int getWidth() { return myWidth; } public int getHeight() { return myHeight; } }