Class BoxedBallsObject

java.lang.Object
  extended by BoxedBallsObject
Direct Known Subclasses:
MoveableObject, StationaryObject

public class BoxedBallsObject
extends Object

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


Constructor Summary
BoxedBallsObject()
           
BoxedBallsObject(String s, Color c)
          Constructs an abstract object with a color and name.
 
Method Summary
 Color getColor()
           
 String getName()
           
 void setColor(Color newColor)
           
 void setName(String newName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxedBallsObject

public BoxedBallsObject()

BoxedBallsObject

public BoxedBallsObject(String s,
                        Color c)
Constructs an abstract object with a color and name.

Parameters:
s - name of class type string
c - color of class type color
Method Detail

setColor

public void setColor(Color newColor)

setName

public void setName(String newName)

getColor

public Color getColor()

getName

public String getName()