So i have a few constants that i’m using across several different classes. Their values are just small ints, 1/2/3 etc, but i like having them centralised so i can change them later.
Right now i have them all in one of my classes, and every other class where i use them calls thatclass.myconstant
That’s starting to feel cumbersome though. I’m using them more than i originally intended across many different parts of my code, and i feel like having them bound to any specific class isn’t appropriate.
Is there any way to have constants made global somehow, to orphan them off from a class? so that from any class i can just use myconstant to get its value?