This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner

 
josephine chen
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct.
maha anna
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic