我如何从这些代码中创建一个新的圆形类,其半径和中点(x,y)
实现了界面画布?
public abstract class GraphicalObject {
protected int x;
protected int y;
protected int color;
public abstract void setColor(bye r, byte g, byte b);
public abstract void setPosition(int x, int y);
}
public interface Canvas {
public void draw(GraphicalObject object);
}