0

I have a java enum containing some elements, and I want a second enum that contains the same elements as the first, plus additional ones.

Is there a way to tell Java to create a new enum by taking the first and adding the extra elements onto it?

ThisIsNoZaku
  • 2,213
  • 2
  • 26
  • 37

1 Answers1

1

Try this question: Can enums be subclassed to add new elements?

The consensus is that it is not possible

Community
  • 1
  • 1
1000000000
  • 639
  • 4
  • 17