RosettaCodeData/Task/Call-an-object-method/NetRexx/call-an-object-method-2.netrexx
2023-07-01 13:44:08 -04:00

4 lines
251 B
Text

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