Multiple Choices
Answer (Choose 1 answer)
Class Student extenus Person
{
double marks;
public Student(double marks, String name) {
[Blank A]
this.marks = marks;
}
public String toString(){
return name + "-" + marks;}
}
public class Main {
public static void main(String[] args) { Student s = new Student(7.5, "John Vu");
System.out.println(s);
}
}
The program output looks like as below:John Vu-7.5.
Which of the followings is correct for blank A.
A. this.name = name;
B. super(name);
C. all above options are correct