SCJP 1.4, SCWCD 1.4
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
SCJP 1.4, SCWCD 1.4
SCJP 1.4, SCWCD 1.4
Falk J. Lucius<br />SCPJ2 1.4
Falk J. Lucius<br />SCPJ2 1.4
In this case, in order to invoke the superclass constructor, the no-arg constructor must have the 'super();' statement at the beginning of its definition which is here completely empty.
If a constructor body does not begin with an explicit constructor invocation and the constructor being declared is not part of the primordial class Object, then the constructor body is implicitly assumed by the compiler to begin with a superclass constructor invocation "super();", an invocation of the constructor of its direct superclass that takes no arguments.
SCJP 1.4, SCWCD 1.4
SCJP 1.4, SCWCD 1.4
SCJP 1.4, SCWCD 1.4
Don't get me started about those stupid light bulbs. |