What is the output of the following code?

```
public class Test {
public static void main(String[] args) {
new Person().printPerson();
new Student().printPerson();
}
}

class Student extends Person {
@Override
public String getInfo() {
return "Student";
}
}

class Person {
public String getInfo() {
return "Person";
}

public void printPerson() {
System.out.println(getInfo());
}
}
```
a. Person Person
b. Person Student
c. Stduent Student
d. Student Person

b

Computer Science & Information Technology

You might also like to view...

Serial killer Dennis Rader's daughter's DNA was retrieved from a Pap smear at the University of Kansas medical clinic, and that DNA was a match to DNA found on one of the victims

Indicate whether the statement is true or false.

Computer Science & Information Technology

What is Responsive web design?

What will be an ideal response?

Computer Science & Information Technology