<?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="Polymorphism (computer science) - Page 14 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=polymorphism_(computer_science)&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=polymorphism_%28computer_science%29&amp;p=15">3.Next</a>
</p>
<p>languages employ the idea of subtyping (also called subtype polymorphism or inclusion polymorphism) to restrict the range of types that can be used in a particular case of polymorphism. In these languages, subtyping allows a function to be written to take an object of a certain type T, but also work correctly if passed an object that belongs to a type S that is a subtype of T (according to the <a href="page.php?w=Liskov_substitution_principle">Liskov substitution principle</a>). This type relation is sometimes written ''S'' <: ''T''. Conversely, T</i> is said to be a supertype of S, written ''T'' :> ''S''. Subtype polymorphism is usually resolved dynamically (see below).</:></p><p>
<a accesskey="1" href="page.php?w=polymorphism_(computer_science)&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=polymorphism_%28computer_science%29&amp;p=15">3.Next</a>
</p>

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

</card>
</wml>
