public class Circle extends Shape
| Constructor and Description |
|---|
Circle(double r,
Point2D p)
Create a circle of radius
r and center point p. |
public Circle(double r,
Point2D p)
r and center point p.r - the radius of the circlep - the center point of the circlepublic double getRadius()
public double getArea()
getArea in class ShapeShape.getArea()