Using the following data definition class:
public class Circle {
private int radius;
public Circle(int r) {radius = r;}
public int getRadius() {return radius;}
public double area() {return 3.14 * radius * radius;}
}
Indicate in the given code segment if an error occurs. If so, indicate whether it is syntax, runtime or logic and how you would fix it.
public class Use2 {
public static void main (String [] args)
{
Circle round;
fill(round);
System.out.println ("Area: " +
round.area());
}
private static void fill(Circle shape)
{ shape = new Circle (6); }
}