A class ‘ZCL_TEST_CLASS1’ is created with a single method ‘METHOD1’. 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_ref1. w_obj_ref2 = w_obj_ref1. CALL METHOD w_obj_ref2->method1.
When compiled, the above code throws a compile time error.
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.