<?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 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Subtyping&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Subtyping&amp;p=3">3.Next</a>
</p>
<p>or functions), written to operate on elements of the supertype, can also operate on elements of the subtype. </p>

<p>If S is a subtype of T, the subtyping <a href="page.php?w=binary_relation">relation</a> (written as , &nbsp;, or &nbsp;&nbsp;) means that any term of type S can safely be used in any context where a term of type T is expected. The precise semantics of subtyping here crucially depends on the particulars of how "safely be used" and "any context" are defined by a given <a href="page.php?w=Formal_language">type formalism</a> or <a href="page.php?w=programming_language">programming language</a>.</p><p>
<a accesskey="1" href="page.php?w=Subtyping&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Subtyping&amp;p=3">3.Next</a>
</p>

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

</card>
</wml>
