Basic Java Language: Difference between revisions

wikademia>Remi0o
wikademia>Remi0o
Line 6: Line 6:
[Protection] class [Name] [Extend/Implements...]
[Protection] class [Name] [Extend/Implements...]
</pre>
</pre>
Right now, worry about the first 3. Protection will be discussed later. "class" is required to create a class. "Name" can be any valid identifier (see Valid Identifiers...). The name will be used to create objects (more later...). Here is what you type to create a class, as for now, and all you must worry about:
Right now, worry about the first 3. "[Protection]" refers to permissions of who can access the class, and will be discussed later. The text of "class" is required to create a class. "Name" can be any valid identifier (see Valid Identifiers...). The name will be used to create objects (more later...). Here is what you type to create a class, as for now, and all you must worry about:
<pre>
<pre>
public class NAME
public class NAME