Spec-Zone .ru
спецификации, руководства, описания, API

Function Syntax

[To do: text description of syntax]

Figure 4.1. functionDefinition

functionDefinition

Figure 4.2. formalParameters

formalParameters

Figure 4.3. formalParameter

formalParameter

Figure 4.4. typeSpecifier

typeSpecifier

Table 4.1. Function Modifiers

abstract An instance function declaration without a body. The defining class must also be abstract. A concrete (non-abstract) class will need to override the function to provide a definition.
bound A bound function allows a bound context to extend into a function call.
override An instance function can override the definition in its superclass if the override modifier is used.
package The function can only be called from the package where it is defined. See Access Modifiers.
protected The function can only be called from the package where it is defined and from subclasses of the class where it is defined. See Access Modifiers.
public The function can be called from anywhere. See Access Modifiers.