Create a nested enum with a single variable of parent class able to take values of both child enum classes

Thanks a lot for this informative reply. What I gather from your answer is that it is basically not possible to combine enumerations like this. I’ll look into the alternatives you suggested.