Circle class update. (#5648)
This commit is contained in:
parent
1f8acbde98
commit
2d872af165
|
@ -16,10 +16,6 @@ public class Circle {
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getArea() {
|
|
||||||
return calculateArea();
|
|
||||||
}
|
|
||||||
|
|
||||||
private double calculateArea() {
|
private double calculateArea() {
|
||||||
return radius * radius * Math.PI;
|
return radius * radius * Math.PI;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue