A class ‘ZCL_TEST_CLASS2’ inherits the class ‘ZCL_TEST_CLASS1’ and redefines the method ‘METHOD1’. Analyze the code below and answer the question. DATA : w_obj_ref1 TYPE REF TO zcl_test_class1, w_obj_ref2 TYPE REF TO zcl_test_class2. CREATE OBJECT w_obj_ref2. w_obj_ref1 = w_obj_ref2. CALL METHOD w_obj_ref1->method1.

When compiled, the above code throws a compile time error.
The code is compiled successfully but throws a runtime error on execution.
The method of the base class (ZCL_TEST_CLASS1) is executed.
The method of the child class (ZCL_TEST_CLASS2) is executed.
Verified Answer
Correct Option - d

To get all Infosys Certified SAP ABAP Objects Professional Consultant Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram