[HD-OCP17/21-Fundamentals Pg 186, Sec. 7.1.4 - applying-access-modifiers-to-members-of-an-enum]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

[HD-OCP17/21-Fundamentals Pg 186, Sec. 7.1.4 - applying-access-modifiers-to-members-of-an-enum]

Post by raphaelzintec »

hello

don't you forgot to mention here

private int value; //enum field can be public, private or protected
public void count(){ //enum method can be public, private or protected

that they also can be default?


Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests