Call an object method: Difference between revisions
m
→{{header|J}}
(Flesh-put the task description.) |
m (→{{header|J}}) |
||
Line 29:
<lang j>methodName_className_ parameters</lang>
Instance:
<lang j>methodName__objectReference parameters</lang>
Line 42:
These variations might be useful when building combining words that need to refer to two different kinds of things. But mostly it's to be consistent with the rest of the language.
Finally, note that static methods can be referred to using the same notation as
<lang j>methodName__classReference parameters</lang>
Line 48:
This might be useful when you are working with a variety of classes which share a common structure.
You can also refer to a dynamic method in the same fashion that you use to refer to a
<lang j>methodName_123_ parameters</lang>
|