1. DATA: go_super TYPE REF TO lcl_super,
2. go_sub1 TYPE REF TO lcl_sub1,
3. go_sub2 TYPE REF TO lcl_sub2.
4.
5. go_super = NEW go_sub2(...).
6. go_super = NEW go_sub1(...).
7. go_sub1 = CAST #( go_super ).
8. go_sub1->sub1_meth1(...).
9. go_sub2 = CAST #( go_super).
10. go_sub2->sub2_meth1(...).
With Icl_super being superclass for Icl_sub1 and Icl_sub2 and with methods sub1_meth1 and sub2_meth1 being subclass-specific methods of Ic_sub1 or Icl_sub2, respectively.
What will happen when executing these casts? (2 correct)
© Copyrights DumpsEngine 2024. All Rights Reserved
We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsEngine.