<?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="Class (programming) - Page 10 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Class_(programming)&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Class_%28programming%29&amp;p=11">3.Next</a>
</p>
<p>state is necessary for being able to enforce the invariants of the class.</p>

<p><big> Behavior </big></p>
<p>The behavior (or action) of a class or its instances is defined using <a href="page.php?w=Method_%28computer_programming%29">methods</a>. Methods are <a href="page.php?w=subroutine">subroutine</a>s with the ability to operate on objects or classes. These operations may alter the state of an object or simply provide ways of accessing it. Many kinds of methods exist, but support for them varies across languages. Some types of methods are created</p><p>
<a accesskey="1" href="page.php?w=Class_(programming)&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Class_%28programming%29&amp;p=11">3.Next</a>
</p>

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

</card>
</wml>
