can we declare enum private in java?
Answers
Answered by
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
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