This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test inner classes

 
Kavita Shivani
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I wanted to know what is the general approach inner classes. In my project, I have an inner class that is private. As of now, I am fixing a defect and so for debug purpose planning to make it public class and test the method I needed to and once i figure out the issue, I am planning to make the class private and keep it that way. But i wanted to if there is a better approach and if I am missing it.

thanks,
Kavitha.
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the class is a inner class.you cannot access it outside without the instance of outer class even if you make it public.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic