<?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="Subtyping - Page 14 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Subtyping&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Subtyping&amp;p=15">3.Next</a>
</p>
<p>type (for example, one can't compare an integer with a complex number), and actually only comparing integers with integers, and reals with reals, makes sense. Rewriting this function so that it would only accept 'x' and 'y' of the same type requires <a href="page.php?w=bounded_polymorphism">bounded polymorphism</a>.</p>

<p>Subtyping enables a given type to be substituted for another type or abstraction. Subtyping is said to establish an <a href="page.php?w=is-a">is-a</a> relationship between the subtype and some existing abstraction, either</p><p>
<a accesskey="1" href="page.php?w=Subtyping&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Subtyping&amp;p=15">3.Next</a>
</p>

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

</card>
</wml>
