Class:
Method:
/**
* Represents a square shape.
*
* <p>This class represents a square,
* storing the side length only.
*
* @author Russell Feldhausen russfeld@ksu.edu
* @version 0.1
*/
public class Square {
/**
* Calculates and returns the area of the square not in the circle.
*
* <p>This method will place the center of the circle at the center of
* the square and compute the difference in area.
*
* @param circle a circle shape
* @return the difference in area
* @throws IllegalArgumentException if the circle is
* larger than the square
*/
public double areaDifference(Circle circle){
/** The side length of the square. */
private int length;