Posted by: Admin on: March 4, 2009
Why do you get a compiler error about super() needing to be the first line in a constructor with this code?
public class Foo {
public void Foo() {
super();
}
}
answer after the jump…
public void Foo() isn’t a constructor, it’s a method, since constructors don’t have a return type – the error message is a little misleading!