aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: protected allowed in enum. So extending enum types possible?