class Foo { public Foo(int value) { // } } class Bar extends Foo { public Bar() { super(ohMyValue()); } public int ohMyValue() { return 5; } }
Standard input is empty
Main.java:9: error: cannot reference this before supertype constructor has been called super(ohMyValue()); ^ 1 error
Standard output is empty