Processing Forum
I was hoping that the mouseClicked() method would result in a compile-time error, showing how you could use the private keyword to protect the variables you don't want other code messing with. But alas, this code runs fine.
I realize that this is happening because classes in Processing are inner classes, and private variables in inner classes are available to outer classes in Java... but is there a better way to show the use of the private keyword in Processing? Or is it just *never* used at all?
Appreciate any input or suggestions!
Kevin