Exdt 45
Read the following Java program:
class Person
{
String name;
public Person(String name) { this.name = name;}
class Student extends Person
{
double marks;
public Student(double marks, String name) {
super(name);this.marks = marks;}
public String [Blank A]
{ } 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 following is correct for blank A:
A. ToString();
B. ToString()
C. toString();
D. toString()