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