What happens if in an enum
private int value;
public void count(){
}
are changed to
int value;
void count(){
}
Are they treated as package private, like in a class?
[HD Pg 204, Sec. 8.4.4 - applying-access-modifiers-to-members-of-an-enum]
Moderator: admin
-
- Posts: 221
- Joined: Mon Nov 26, 2018 2:43 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 204, Sec. 8.4.4 - applying-access-modifiers-to-members-of-an-enum]
Correct. (Not important for OCAJP exam.)
Who is online
Users browsing this forum: Bing [Bot] and 10 guests