publicclass MainClass {
publicstaticvoid main(String[] argv) {
new MySubclass();
}
}
class MyClass {
int i = 9;
public MyClass() {
}
}
class MySubclass extends MyClass {
public MySubclass() {
super();
System.out.println(super.i);
}
}
9
3.10.super
3.10.1.
super is used to reference methods and field from superclass