1
P4nda
5y

Hi, so currently I am developing a program in Java that requires a few enums (I'm new to them and so far they are pretty awesome) and currently I want to create an enum that requires a single field, an instance of another enum. So in the first enum's constructor, I'm setting all the parameters into a new instance of the second enum, however, I'm getting "Enum1 has private access in Enum2!".

I'm off for the day but rq I just wanted to ask if anyone could help me with this. I'll be back in a few hours!

Comments
Add Comment