Author Topic:   Inner
shan
unregistered
posted February 20, 2000 11:54 AM           
Check my answers


Which statement is true about a non-static inner class?
It must implement an interface. //f
It is accessible from any other class. //true
It can only be instantiated in the enclosing class. //f
It must be final if it is declared in a method scope. //f
It can access private instance variables in the enclosing object.//t

maha anna
bartender
posted February 20, 2000 12:13 PM             
You are correct.
maha anna

Jim Yingst
sheriff
posted February 21, 2000 03:26 AM             
"It is accessible from any other class."

It MAY be accessible from any other class, or it may not if it's not declared public. I think FALSE is a better answer.

|