Example #1
0
 public Circle(double r)
 {
     radius = r;
     xPos   = DataModel.getNewXPos();
     yPos   = DataModel.getNewYPos();
 }
Example #2
0
 public Triangle(double p)
 {
     oneSide = p;
     xPos    = DataModel.getNewXPos();
     yPos    = DataModel.getNewYPos();
 }
Example #3
0
 public Square(double p)
 {
     oneSide = p;
     xPos    = DataModel.getNewXPos();
     yPos    = DataModel.getNewYPos();
 }