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 {
private String getInfo() {
return "Student";
}
}
class Person {
private String getInfo() {
return "Person";
}
public void printPerson() {
System.out.println(getInfo());
}
}
```
a. Person Person
b. Person Student
c. Stduent Student
d. Student Person
a. Person Person
You might also like to view...
When a date is entered without a year, an error value appears in the active cell
Indicate whether the statement is true or false.
How many computers was the bot-herder 0x80 said to control?
A) 20,000 in more than 20 countries B) 20,000 in more than 13 countries C) 13,000 in more than 20 countries D) 20,000 in 13 countries