<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Inner class - Page 8 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=inner_class&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=inner_class&amp;p=9">3.Next</a>
</p>
<p>in static context. Hence, they can implicitly refer to instance variables and methods of the enclosing class. The enclosing instance reference can be explicitly obtained via <code>EnclosingClassName.this</code>. Inner classes may not have static variables or methods, except for compile-time constant variables. When they are created, they must have a reference to an instance of the enclosing class; which means they must either be created within an instance method or constructor of the enclosing class, or (for member and anonymous classes) be created</p><p>
<a accesskey="1" href="page.php?w=inner_class&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=inner_class&amp;p=9">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
