I need to create a class that contains a lot of information (slow to initialize). I am trying to access this class from my other classes. This class should only be created once because it is slow to load and takes a lot of memory. My only idea of how to do this is to create an instance of the class in the loader class and then pass it from class to class as I switch through them.
I feel like there is a better way to do this. I thought about making all the methods and variables in this class static but then I would still have to make a new object in each new class which I think would then re-initialize the object(which I don't want to do).
I am not sure if there is a better way to do this... thoughts?