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

5 lines
251 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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