i'm given an interface below to implement :
package presentation;
public interface Drawable {
public void drawMe( java.awt.Graphics2D g );
}
When asked to draw itself, the beach ball draws a red circle in the bottom-right corner of the room. Is something wrong with my code below?
package contents;
import java.awt.*;
import presentation.*;
public class BeachBall implements presentation.Drawable{
public void drawMe( java.awt.Graphics2D g ){
setColor(red);
drawOval(10, 10, 9, 9);
}
}