Difference of Enum between java and C++?
c++, java
Solution
In C++, an enumeration is just a set of named, integral constants. In Java, an enumeration is more like a named instance of a class. You have the ability to customize the members available on the enumeration.
Also, C++ will implicitly convert enum values to their integral equivalent, whereas the conversion must be explicit in Java.
More information available on Wikipedia.
Problem
I am learning Enums in java I like to know what are the major differences of Enum in java and C++. Thanks