Constructors in
Java are not inherited although it may appear so when the compiler adds a default no-args constructor into a class that has no explicitly declared constructor. With a little experimentation (see code below) you will quickly see that constructors are not inherited.
Now see if you can figure out why GrandChild2 will not compile.
(Hint: by default, the compiler will insert a call to super() as the first statement in a constructor))
[ July 02, 2004: Message edited by: Junilu Lacar ]
(darned UBB
)
[ July 02, 2004: Message edited by: Junilu Lacar ]