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