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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!