1: //Circle.java
2: //Concrete class which extends the abstract RoundShape class.
4: public class Circle
5: extends RoundShape
6: {
7: //Constructor
8: public Circle(int xCenter, int yCenter, double radius)
9: {
10: super(xCenter, yCenter, radius);
11: }
14: //Return area of circle
15: public double getArea()
16: {
17: return Math.PI * Math.pow(radiusOfRoundShape, 2.0);
18: }
19: }