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
You might also like to view...
The constructor of a class that does not have any parameters is called a __________ constructor. default
Fill in the blank(s) with the appropriate word(s).
Unless you want the object to be aligned with the left or right margin of a web page, you must treat it as a(n) ________ character
Fill in the blank(s) with correct word
What is the purpose of WPAD?
A) To authenticate a mobile device in such a way that constant reauthentication does not have to be done based on the amount of time specified in the configuration B) A method of delivering proxy server configuration to hosts C) A type of wireless authentication D) A wireless network device used to automatically discover rogue access points
Access saves ____ automatically as you move from record to record.
A. data B. queries C. tables D. all of the above