Garmaine Staff asked 2 years ago
Closed. This question needs to be more focused. It is not currently accepting answers.

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);