This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes protected allowed in enum. So extending enum types possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "protected allowed in enum. So extending enum types possible?" Watch "protected allowed in enum. So extending enum types possible?" New topic
Author

protected allowed in enum. So extending enum types possible?

Firas Zuriekat
Ranch Hand

Joined: May 09, 2006
Posts: 144
The following compiles fine:



So is extending MyEnum allowed? I mean could the protected member above be overridden?
[ June 02, 2006: Message edited by: Firas Zureikat ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: protected allowed in enum. So extending enum types possible?
 
Similar Threads
i want some information related to enum keyword
"casting" an int to an enum type
JPA enum mapping by explicit getId()
enum and inner class
enum constructors