- The method instruction defines the logic of an object method.
- The name of the method is identified by a preceding label.
- The method concludes when an exit or return instruction is reached.
- All methods are invoked as Rexx functions, so these must all return a value.
- Method parameters are accessible using Rexx argument access capabilities.
- Methods are performed like Rexx internal procedures, that have a PROCEDURE keyword instruction that lacks an EXPOSE clause.
- Thus, a method can only interact with its caller via arguments and the return value.
- A method can access the local and shared variables associated with a specific instance of its class, as well as static variables associated with the class hierarchy.
- A method can also reference dynamic variables that are discarded when the method concludes.