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.

--
monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
.