This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 14688
    
  16

A rancher asked the same question yesterday Here.


[My Blog]
All roads lead to JavaRanch
 
Have you checked out Aspose?
 
subject: private enum member within same file, is it possible?
 
jQuery in Action, 3rd edition