Campbell Ritchie wrote:
Of course, if your variables are reference types, you cannot initialise them to 0. You would have to use null, and as you doubtless know, nulls are dangerous. You will find discussion of null problems and other mistakes, in this thread.
The same applies to fields, though they do have default values.
Wout Er wrote:
Henry Wong wrote:
if the variable had been a Boo instance (and reference), then it would have been allowed to access the protected resource defined by the Roo class.
Henry, thanks for pointing this out and luckily this works! Still, I don't see the rationale for why it doesn't work on a Roo-typed reference within subclass code in another package, while it does within any code in the same package.