<?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 3 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=inner_class&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=inner_class&amp;p=4">3.Next</a>
</p>
<p>class <code>Car</code> are composed of four instances of the class <code>Wheel</code>. This particular implementation of <code>Wheel</code> is specific to a car, so the code does not model the general notion of a wheel that would be better represented as a top-level class. Therefore, it is semantically connected to the class <code>Car</code> and the code of <code>Wheel</code> is in some way coupled to its outer class, being a composition unit of a car. The wheel for a particular car is unique to that car, but for generalization, the wheel is</p><p>
<a accesskey="1" href="page.php?w=inner_class&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=inner_class&amp;p=4">3.Next</a>
</p>

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

</card>
</wml>
