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

The brightness of a projection device is measured in pixels.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ________ is placed at the beginning of a report and includes information such as the student's name and class

A) table of contents B) index C) reference D) cover page

Computer Science & Information Technology

List the steps in the incident response process.

What will be an ideal response?

Computer Science & Information Technology

Items you copy using drag and drop do not get placed on the Windows or Office Clipboard. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology