I have an object say A
that loads some data from disk and it takes a bit long time to load. Many of other objects need its methods and data so I don't want neither any time I need it create a new one nor passing it through class constructor. Is there any way to create an instance of the class A
only once at the beginning of the running project and all the other objects have access to the object A
?
I apologize if my question is duplicated but I don't have any idea about what keywords relate to this question to find related questions.