Call an object method: Difference between revisions

m
(Flesh-put the task description.)
Line 29:
<lang j>methodName_className_ parameters</lang>
 
Instance:
Dynamic:
 
<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 dynamicinstance methods -- in this case you must have a reference to the class name:
 
<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 staticinstance method -- in this case you must know the object name (which is a number). For example, to refer to a method on object 123
 
<lang j>methodName_123_ parameters</lang>
6,962

edits