RosettaCodeData/Task/Call-an-object-method/NetRexx/call-an-object-method-2.net...

5 lines
251 B
Plaintext

objectInstance = SomeClass() -- create a new instance of the class
objectInstance.instanceMethod() -- call the instance method
SomeClass().instanceMethod() -- same as above; create a new instance of the class and call the instance method immediately