Instance method call
Unlike a static method When calling an instance method of a class it needs you to create and instace of that class before calling it, i.e. by the use of the 'REF TO' statement. The below example demonstrates how to call the instance method GET_CHILD_NODE of class IF_WD_CONTEXT_NODE.
Call instance method data: WD_CONTEXT type ref to IF_WD_CONTEXT_NODE. data: child_node type ref to if_wd_context_node. child_node = wd_context->get_child_node( name = 'LOGON').
Related Articles
The new ABAP objects Editor
ABAP Objects development for SAP (ABAP OOPS)
Static method call