Access variables in another class
in
Programming Questions
•
2 years ago
Hi,
I have a class heirarchy as such
Class Application
-Class-1
-Class a
-Class a1
-Class 2
-Class 3
-Class b
I was wondering how it would be possible to access (get and set) variables in Class 1 from Class a1, or how to access variables in the main application class. I'm using textmate + processing at the moment (no eclipse).
So for instance, if Class 1 had a boolean called "isVisible", I would like to change it from within Class a1.
Any help would be greatly appreciated.
Cheers.
L
1