Ball.java
import objectdraw.*;
import java.awt.*;
/**
* --- WHAT DOES IT DO?
* @author -----
*/
public class Ball extends ActiveObject {
/**
* ????
* --- 51 students: Add parameters as necessary.
*/
public Ball( ) {
// Add your code here.
// Make sure that the start method call is the last thing
// in the constructor as this class extends ActiveObject.
start();
}
/**
* ????
*/
public void run() {
// Change the true condition to the condition that tests for the ball reaching
// the bottom of the playing area.
while (true)
{
// Add code to move the ball a small distance down here.
pause(50);
}
// Add the code that should be executed when you reach the bottom of the
// playing area.
}
}