Box.java
import objectdraw.*;
import java.awt.*;
// Name:
// Lab:
public class Box
{
// You need to add the parameters.
public Box()
{
}
// Move the box to a random location at the bottom of the playing area.
// Add parameters if necessary.
public void moveBox()
{
}
// Set the width of the box.
// Add parameters if necessary.
public void setSize()
{
}
// Return the x position of the left edge of the box
// Replace the return statement with the correct code.
// Add parameters if necessary.
public double getLeft()
{
return 0.0;
}
// Return the x position of the right edge of the box
// Replace the return statement with the correct code.
// Add parameters if necessary.
public double getRight()
{
return 0.9;
}
}