METHOD-ID paragraph for defining a class instance method
Use the METHOD-ID
paragraph to name an
instance method. Immediately precede the METHOD-ID
paragraph
with an IDENTIFICATION DIVISION
declaration to indicate
the beginning of the method definition.
About this task
For example, the definition of the credit
method
in the Account class begins like this:
Identification Division.
Method-id. "credit".
Code the method-name as an alphanumeric or national literal. The method-name is processed in a case-sensitive manner and must conform to the rules of formation for a Java™ method-name.
Other Java or COBOL methods or programs (that is, clients) use the method-name to invoke a method.
Related references
The Java Language Specification (Meaning of method names)
The Java Language Specification (Identifiers)
METHOD-ID paragraph (Enterprise COBOL for z/OS® Language Reference)
The Java Language Specification (Meaning of method names)
The Java Language Specification (Identifiers)
METHOD-ID paragraph (Enterprise COBOL for z/OS® Language Reference)