I am very, very, new to B4X - working on my first non-tutorial application. My programming knowledge is PHP and some Basic a long time ago. I do not know Java.
I have searched books, the booklets, the Forum, Google search. I might have missed it but, I have not seen this explained anywhere.
What is the purpose of the Private access modifier? I know what it does. But, why is there a need to hide access from other variables? Is it a memory issue? Is it a security issue? Is it an issue related to "lifetime" of the objects? Would there be a problem with all subs, modules, activities, etc. being Public?
I apologize if this question is too fundamental for the Forum, but knowing the "why" would help me a lot. Thanks in advance for assistance with this.