File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes private enum member within same file, is it possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "private enum member within same file, is it possible?" Watch "private enum member within same file, is it possible?" New topic
Author

private enum member within same file, is it possible?

Oskar Morganstern
Greenhorn

Joined: Mar 24, 2010
Posts: 1


How come I can access points?
something which I declared as private. I know that if I declared the enum in a separate file that it would not be visible. But why is it visible within the same file?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

A rancher asked the same question yesterday Here.


[My Blog]
All roads lead to JavaRanch
 
Consider Paul's rocket mass heater.
 
subject: private enum member within same file, is it possible?