<?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="Design by contract - Page 9 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Design_by_contract&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Design_by_contract&amp;p=10">3.Next</a>
</p>
<p>for the client.<br/>
* Maintain a certain property, assumed on entry and guaranteed on exit: the <a href="page.php?w=class_invariant">class invariant</a>.</p>

<p>The contract is semantically equivalent to a <a href="page.php?w=Hoare_triple">Hoare triple</a> which formalises the obligations.  This can be summarised by the "three questions" that the designer must repeatedly answer in the contract:<br/>
* What does the contract expect?<br/>
* What does the contract guarantee?<br/>
* What does the contract maintain?</p>

<p>Many <a href="page.php?w=programming_language">programming language</a>s</p><p>
<a accesskey="1" href="page.php?w=Design_by_contract&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Design_by_contract&amp;p=10">3.Next</a>
</p>

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

</card>
</wml>
