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?

4

1 回答 1

1

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

The consensus is that it is not possible

于 2013-07-24T00:29:52.097 回答