Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?()
- A、Member variables of the outer instance are always accessible to inner instances, regardless of their accessibility modifiers.
- B、Member variables of the outer instance can never be referred to using only the variable name within the inner instance.
- C、More than one inner instance can be associated with the same outer instance.
- D、All variables from the outer instance that should be accessible in the inner instance must be declared final.
- E、A class that is declared final cannot have any inner classes.
正确答案:A,C
答案解析:有
微信扫一扫手机做题