Which lines are displayed by the following program?
class SuperClass {
String s = "super";
void display(String s) {
System.out.println("super: " + s);
}
}
class Question extends SuperClass {
String s = "this";
public static void main(String[] args) {
new Question();
}
Question() {
display(super.s);
super.display(s);
}
void display(String s) {
System.out.println("this: " + s);
}
}
Please select all the correct answers.
|