Question: Assume the following class: public class Circle { private double radius; public Circle(double radius) { this.radius = radius; } } The following statement in the
Assume the following class:
public class Circle
{
private double radius;
public Circle(double radius)
{
this.radius = radius;
}
}
The following statement in the main() means:
Circle[] x = new Circle[10];
a) x is an array of ten int values.
b)x is a reference to an array and each element in the array can hold a Circle object.
c)x is an array of ten Circle classes.
d) x contains a reference to an array and each element in the array refers to ten Circle objects.
e) None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
