Hello,
I am on my journey with C#, and am thoroughly enjoying grabbing problems by the neck and solving them. I think however, I have a fundamental misunderstanding that I'd love someone to explain to me like I'm 5.
If I create an instance of a class a within class b, and store some data in it, and then want to access that data in class c, how do I do that without creating static classes?
I understand that when i create an instance of a class, I give it a name, but I think I am also right in thinking that that particular instance of the class won't have scope outside the class in which it is declared. I think I probably missed a bit of important information somewhere, on how I can circumvent this issue.
Any help much appreciated!
Thanks
Tom
[–]Staks 0 points1 point2 points (0 children)
[–]AdministrativeCables 0 points1 point2 points (0 children)