<?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="Virtual function - Page 3 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Virtual_function&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Virtual_function&amp;p=4">3.Next</a>
</p>
<p>do not allow changing this behavior. However, others may provide modifiers that prevent methods from being overridden by derived classes (such as the final and private keywords in <a href="page.php?w=Java_%28programming_language%29">Java</a> and <a href="page.php?w=PHP">PHP</a>).</p>

<p><big> Purpose </big></p>
<p>The concept of the virtual function solves the following problem:</p>

<p>In <a href="page.php?w=object-oriented_programming">object-oriented programming</a>, when a derived class inherits from a base class, an object of the derived class may</p><p>
<a accesskey="1" href="page.php?w=Virtual_function&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Virtual_function&amp;p=4">3.Next</a>
</p>

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

</card>
</wml>
