<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<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>
<body>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help%3Fen"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;&nbsp;
<a href="../cat%3Fen">Up</a>&nbsp;&nbsp;
<a href="signature%3Fen">Previous</a>&nbsp;&nbsp;
<a href="special/_call%3Fen">Next</a>&nbsp;&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 bgcolor="white"><td valign="top">
<tt><a href="special/_init%3Fen">_init</a></tt>
</td><td valign="top">
Class initialization.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_exit%3Fen">_exit</a></tt>
</td><td valign="top">
Class clean-up.
</td></tr>
<tr bgcolor="white"><td valign="top">
<tt><a href="special/_new%3Fen">_new</a></tt>
</td><td valign="top">
Object instanciation.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_free%3Fen">_free</a></tt>
</td><td valign="top">
Object release.
</td></tr>
<tr bgcolor="white"><td valign="top">
<tt><a href="special/_next%3Fen">_next</a></tt>
</td><td valign="top">
Object or class enumeration.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_get%3Fen">_get</a></tt>
</td><td valign="top">
<a href="../../lang/array%3Fen">Inline Arrays</a> read operator.
</td></tr>
<tr bgcolor="white"><td valign="top">
<tt><a href="special/_put%3Fen">_put</a></tt>
</td><td valign="top">
<a href="../../lang/array%3Fen">Inline Arrays</a> write operator.
</td></tr>
<tr><td valign="top">
<tt><a href="special/_call%3Fen">_call</a></tt>
</td><td valign="top">
Using the object or the class as a method.
</td></tr>
<tr bgcolor="white"><td valign="top">
<tt><a href="special/_unknown%3Fen">_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%3Fen">Methods Implementation</a>&nbsp;&nbsp; <a href="enum%3Fen">Enumeration Management</a>&nbsp;&nbsp; <a href="unknown%3Fen">Unknown Special Method Management</a>&nbsp;&nbsp;

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

