import java.awt.*; public class circle extends shape { //constructer that allows you to set all the values public circle(int x, int y, int size, int xVel, int yVel, int gravX, int gravY) { super(x, y, size, xVel, yVel, gravX, gravY); } //constructor that randomly sets everything except for the ending coordinates, this is the one I call from the applet public circle(int gravX, int gravY) { super((int)(Math.random()*300), (int)(Math.random()*300), 80, (int)(Math.random()*100-50), (int)(Math.random()*100-50), gravX, gravY); } //overrides the abstract method in shape, draws the circle with center centerX, centerY. You've probably done this before ;-) public void paint(Graphics g) { int startX, startY; startX=centerX-size/2; startY=centerY-size/2; g.fillOval(startX, startY, size, size); } }