Page 1 of 1

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

Posted: Sat Sep 21, 2024 10:13 am
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?

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

Posted: Sat Sep 21, 2024 7:55 pm
by admin
Yes, sure.
Thx.