<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css">
<title>
Gambas Documentation - Special Methods
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help+en"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../cat+en">Up</a>&nbsp;
<a href="signature+en">Previous</a>&nbsp;
<a href="special/_call+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Special Methods
</h1>
Special methods are methods declared in classes, whose name begins with
an underscore character, and that are called by the interpreter in some
special situations.
<p>
They are eight different special methods, and they are all optional.
<p>
<table class="table" border="0" bordercolor="#000000" cellpadding="4" cellspacing="0">
<tr class="dark"><td valign="top">
<tt><a href="special/_init+en">_init</a></tt>
</td><td valign="top">
Class initialization.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_exit+en">_exit</a></tt>
</td><td valign="top">
Class clean-up.
</td></tr>
<tr class="dark"><td valign="top">
<tt><a href="special/_new+en">_new</a></tt>
</td><td valign="top">
Object instanciation.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_free+en">_free</a></tt>
</td><td valign="top">
Object release.
</td></tr>
<tr class="dark"><td valign="top">
<tt><a href="special/_next+en">_next</a></tt>
</td><td valign="top">
Object or class enumeration.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_get+en">_get</a></tt>
</td><td valign="top">
<a href="../../lang/array+en">Inline Arrays</a> read operator.
</td></tr>
<tr class="dark"><td valign="top">
<tt><a href="special/_put+en">_put</a></tt>
</td><td valign="top">
<a href="../../lang/array+en">Inline Arrays</a> write operator.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_call+en">_call</a></tt>
</td><td valign="top">
Using the object or the class as a method.
</td></tr>
<tr class="dark"><td valign="top">
<tt><a href="special/_unknown+en">_unknown</a></tt>
</td><td valign="top">
Calling an unknown method or property.
</td></tr>
</table>
<p>
<hr><b>See also</b><br>
<a href="method+en">Methods Implementation</a>&nbsp; <a href="enum+en">Enumeration Management</a>&nbsp; <a href="unknown+en">Unknown Special Method Management</a>&nbsp;

</div>
</body>
</html>

