I\'d like to know if it is possible in Java to nest Enums.
Here what i\'d like to be able to do :
Have an enum Species made of CAT and DOG wich would grant m
Wouldn't you be better doing this with inheritance? Cat and Dog would be subclasses of Species. Persion would be a subclass of Cat and Pitbull would be a subclass of Dog.
What are trying to achieve by wanting to use Enums?