Question: Consider the following class declaration. public class Circle { private double radius; public double computeArea ( ) { private double pi = 3 . 1
Consider the following class declaration.
public class Circle
private double radius;
public double computeArea
private double pi ;
public double area pi radius radius;
return area;
Constructor not shown.
Which of the following best explains why the computeArea method will cause a compilation error?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
