Re: calling methods help

On 2005-08-10, Eric Sosman penned:
> a classB. (But the compiler isn't entirely trusting: if you
> happen to be wrong and `a' refers to a classZ instead, you'll
> get a ClassCastException at run-time.)

I think that happens because the compiler *is* entirely trusting.


Ask smart questions, get good answers: