Basic Java Language: Difference between revisions

Line 165: Line 165:
a = 0;
a = 0;
</pre>
</pre>
==Public, Private - What are they?==
These statments are used to protect data. For example, "private int myInt" will make myInt only accessible from the class it is in. Here is a complete description:<br>
'''*Coming in a moment*'''


'''More coming soon'''
'''More coming soon'''