Question: Given the partial class declaration below, select a statement that should be used to initialize the values array in the class constructor. public class Points

Given the partial class declaration below, select a statement that should be used to initialize the values array in the class constructor.
public class Points
{
private T[] values;
...
public Points(int size)
{
___________________________________
}
}
Question 2 options:
values =(T[]) new Object[size];
values = new T[size];
values = new Double[size];
values = new Object[size];

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!