Originally posted by Jyothy kidambhi:
I agree with you all but I think the wording is incorrect.
I think that statement means that when a programmer writes constructors, he/she must either add this() or super() as first statement.
But thats just my opinion...
Obviously, we're to the point now where we're splitting hairs. You understand perfectly well the concept here, that the constructor must invoke another constructor, whether it is done by the programmer or done implicitly by the compiler. I'm sure it could have been worded differently in the book, but notice that the statement says:
Every constructor must have as its first statement...
It
does not say:
The programmer must insert a call as the first statement to...
As I said, we're really just splitting hairs here. If you want to interpret it one way or the other, fine.