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

abstractAn 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.
boundA bound function allows a bound context to extend into a function call.
overrideAn instance function can override the definition in its superclass if the override modifier is used.
packageThe function can only be called from the package where it is defined. See Access Modifiers.
protectedThe 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.
publicThe function can be called from anywhere. See Access Modifiers.