import java.awt.Color; /**Ancestor class for all program BoxedBalls objects. All objects have a name and a color. * Coordinates are not specified because the shape of the object is still abstract. For example, * polygons take different shapes than circles, thus, we cannot yet assign coordinates*/ public class BoxedBallsObject { private String name; private Color color; public BoxedBallsObject() { name = "Untitled"; color = Color.BLACK; } /**Constructs an abstract object with a color and name. * @param s name of class type string * @param c color of class type color*/ public BoxedBallsObject(String s, Color c) { name = s; color = c; } public void setColor(Color newColor) { color = newColor; } public void setName(String newName) { name = newName; } public Color getColor() { return color; } public String getName() { return name; } }