What is the difference between Upcasting and Downcasting in SAP ABAP?

Data lr_top_floor TYPE REF TO zcl_top_floor Data lr_ground_floor TYPE REF TO zcl_ground_floor lr_top_floor = New zcl_top_floor (). lr_ground_floor = New zcl_ground_floor (). Downcast: When you stand in the top floor, the view of the properties such as roads, other houses are visible easily. The view is widened in the top floor. So, we can call …

What is the difference between Upcasting and Downcasting in SAP ABAP? Read More »