Greetings,
I'm a beginner to OO and programming and I have the following situation:
I have a set of const values and enums that several of the classes I implement share.
These classes are independent i.e. other than sharing these values, they do not interact with each other, so inheriting them won't work.
I was wondering; If I create an empty class with just these consts and enums and then declare an object of these class in each class then i could use these values like:
globals.enum.enummember?
Is this sound programming or is there a better way of doing this?
Thanks for your time.