Previous Next Edit Rename Undo Search Administration
A method is a function defined at class
level, and usually acting on a specific object
It can be:
- public - It becomes part of the class interface.
- private - Only other methods of the class can use it.
- dynamic - It acts a specific object.
- static - It is global, and can use only other static elements of the class.
A method can return a value, whose datatype is the datatype of the method.
A method have arguments, each one having a datatype. Some of the arguments can be optional.
A method can be programmed in Gambas
, or in C/C++ when defined in a native component