class SuperClass {
String s = "super";
void display(String s) {
System.out.println("super: " + s);
}
}
class ThisSuper extends SuperClass {
String s = "this";
ThisSuper() {
display(this.s);
display(super.s);
this.display(s);
super.display(s);
}
void display(String s) {
System.out.println("this: " + s);
}
}
public class MainClass {
public static void main(String[] argv) {
new ThisSuper();
}
}
this: this
this: super
this: this
super: this