Conceptual question: access to an object created in another class
I hope you will forgive me for not posting the code since I think this is a conceptual problem. In my main class I have created an object, which has its own variables of a particular value. Then in another class which handles the GUI of my program I wish to refer to this object and its values. I do not know how to do this. I can't create a new object of the same class since this would not share the same values as the object in the main class. Can anyone set my thinking straight?