Version: 4.1

2.5 Method

MethodReturn Id (Type Id ,...) {Statement ...}

Creates a method, bound to Id, that can be called on the current object, or instances of this class. The body of the method, the statements, will be evaluated sequentially when the method is called. The method name may not be the name of any classes defined in the same program or of any fields or methods in the same class. A method that does not return a value uses the void designation instead of a Type for MethodReturn.

abstract MethodReturn Id (Type Id ,...) ;

Creates a method, bount to Id, inside an abstract class. Like an interface signature, non-abstract classes that inherit this method must provide an implementation.