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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: private enum member within same file, is it possible?
 
Similar Threads
What is the output for this Class
K & B, Chapter 3, Quiz Question 7
Name of enum object in all lower-case
question 7 of chapter 3
Info concerning the updates to the SCJP 6 exam