We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Dears All,
I created a sketch with multi TABs; one TAB is for the main program the others are for the classes; in the classes I used "private" for the fields and methods but in the main TAB I can recall the private fields and methods and I can manage/modify these directly...why?. I am using 3.3.7.
regards
Answers
https://forum.processing.org/two/discussion/10964/how-does-one-go-about-making-member-fields-in-a-class-actually-private-in-processing
All ".pde" files are concatenated as 1 ".java" file, wrapped up as 1 subclass of PApplet. ~O)
B/c classes created inside ".pde" files are nested members of that PApplet top subclass, any restriction access keywords, like
private
&protected
, doesn't affect the sketch code, b/c every1 is a member of the same class. >-)thanks...now is clear.