><img src=../../images/javaHeader.gif width=26 height=26 align=bottom border=0 alt="Writing Java Programs | "></a>
</td>
<td align=right>
<a href="index.html"><strong><em>Java Objects</em></strong></a>
</td>
</tr>
</table>
<p>
<hr size=4>

<h2>
    Declaring a Class
</h2>
<p>
<blockquote>

In general, a class declaration look like this:
<blockquote>
<pre>
[ <em>modifiers</em> ] class <em>ClassName</em> [ extends <em>SuperClassName</em> ] [ implements <em>InterfaceNames</em> ] {
    . . .
    class body
    