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. Person Student

Computer Science & Information Technology

You might also like to view...

In a peer-to-peer network, all of the computers are set up to share resources with every device on the network, but none of them provide centralized authority

Indicate whether the statement is true or false

Computer Science & Information Technology

The default equals implementation of class Object determines:

a. whether two references refer to the same object in memory. b. whether two references have the same type. c. whether two objects have the same instance variables. d. whether two objects have the same instance variable values.

Computer Science & Information Technology