Basic Java Language: Difference between revisions

wikademia>Remi0o
wikademia>Remi0o
Line 22: Line 22:


=Protection=
=Protection=
{{Template:confusing|December 2006}}
Java allows you to create a "protection value". This means you can set who (or what - your program, other people's programs, etc.) can access the variable, method, or class that you set to a protection. You have already seen where this goes in a class, and will learn where in variables and methods. Right now, just call everything public. Here is a chart (which you might not understand right now).
Java allows you to create a "protection value". This means you can set who (or what - your program, other people's programs, etc.) can access the variable, method, or class that you set to a protection. You have already seen where this goes in a class, and will learn where in variables and methods. Right now, just call everything public. Here is a chart (which you might not understand right now).
<center>
<center>