This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: protected allowed in enum. So extending enum types possible?