Helen Ma wrote:Enum is a special type of class, according to either KB or Mughal / Rasumenssen / some Java tutorial online.
So, if you have a class (not inner) , you cannot mark it static , protected or private.
For final, I am not sure. Maybe we cannot extend a Enum and it is final implicitly. And for the same reason, it should not be abstract.
Thanks Helen but my question was something different
Joined: Nov 01, 2011
As I remember, the enum defined inside a class is implicitly static. By you can try to see if it compiles when this enum is declared protected, private, final.....
As I remember, the enum insdie a class can be protected/private.