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?
[HD-OCP17/21-Fundamentals Pg 186, Sec. 7.1.4 - applying-access-modifiers-to-members-of-an-enum]
Moderator: admin
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 13 guests