Question: Which statement creates a StudentIDs object given the following code: public class StudentIDs > { private TheType item 1 ; private TheType item 2 ;

Which statement creates a StudentIDs object given the following code:
public class StudentIDs>{
private TheType item1;
private TheType item2;
public StudentIDs(TheType i1, TheType i2){
item1= i1;
item2= i2;
}
}
a.
StudentIDs newStudent = new StudentIDs(9,5);
b.
StudentIDs newStudent = new StudentIDs(9,5);
c.
StudentIDs newStudent = new StudentIDs (Integer iVal1, Integer iVal2);
d.
StudentIDs newStudent = new StudentIDs(int iVal1, int iVal2);

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!