Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 hours ago.
Which XXX calls the alternative constructor?
public class Student {
private double myGPA;
private int id;
public Student(double gpa) {
myGPA = gpa;
}
public Student() {
XXX
id = 0;
}
}
choices:
a. this();
b. Student(0.0);
c. this(0.0);
d. Student.this(0.0);
Please login or Register to submit your answer