SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287
Originally posted by Kathy Hodgson:
... so how can it be called using the subclass version when there isn't an instance of the subclass yet ...
Kathy
Originally posted by Kathy Hodgson:
Thank you all; these help, especially the link. However, even that says that this.prints1() is called WHILE the superclass constructor is executing. How can that be OK, when it is an instance method, and the K&B book says it's not allowed to call an instance method until the superclass constructor is finished executing? Am I taking that too literally? If so, can anyone give an example of when calling an instance method before the superclass constructor is finished executing actually would cause a problem? I still don't understand when it's OK and when it's not.
Kathy