Hi
i have wrote a program that creates objects of another class in the class it self, and I want to be able to save data to the objects I have created, from the class that created them. How can I do this?
THank You
Hi
i have wrote a program that creates objects of another class in the class it self, and I want to be able to save data to the objects I have created, from the class that created them. How can I do this?
THank You
The same way you would do it anywhere else -- using the methods of the class that you created. (Perhaps you put parameters in the constructor, perhaps using setThis, or setThat, or whatever.)
By 'save', I assume you mean 'save as a file'?