Computer Science, asked by bluehathacker22, 7 months ago

can we declare enum private in java? ​

Answers

Answered by aarohi2493
1

Explanation:

In Java, enum is a keyword. Enum constructors are always private or default. Therefore, you cannot have public or protected constructors in an enum type. ... You can declare abstract methods within an enum.

Answered by mariashakeb123
1

Answer:

In Java, enum is a keyword. Enum constructors are always private or default. Therefore, you cannot have public or protected constructors in an enum type. ... You can declare abstract methods within an enum

Similar questions