I have a few questions about enum size when it come to declarations.
1: If I declare an enum in a class that will be instantiated multiple times, will that be reflected in memory?
Example 1:
will a,b,c take up storage in each instance? IE multiple copies of the enum.
what if it's declared like this:
Example 2:
My assumption is no but I want to be sure.
2. What if I add a final variable like this;
Example 3:
If i remember right when Foo(int enum_var) is called it just creates a group of ints representing those values, not creating a separate "instance" for lack of a better
word atm.
So it wouldn't create multiple copies of the array correct?
Again my assumption is no but I want to be sure.
Edit:
I am operating under the assumption that, like static variables, they belong to the class not the instance IE they will not be copied multiple times.