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

5 lines
251 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07: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