Re: [General]acces of members of subclass



Eric Sosman wrote:
Mark Space wrote:

if( aa instanceof My_Other_Class ) {
int x = (My_Other_Class)aa.w;

ITYM `((My_Other_Class)aa).w'.

}


Yup, I had the precedence wrong. The extra parenthesis are required.
.