Question: Write the necessary statements to create a usable array of objects that belong to the class MyClass shown below. public class NewClass { public int

Write the necessary statements to create a usable array of objects that belong to the class MyClass shown below.
public class NewClass {
public int x, y;
public NewClass(){
x =0;
y =0;
}
public NewClass(int initX, int initY){
x = initX;
y = initY;
}
}
Need this done in java

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!