Refer to the exhibit.
with which predicate condition can you ensure that the CAST will work?
The following code snippet uses the IS INSTANCE OF predicate condition to check whether the variable g_super is an instance of the class lcl_super. If it is, the CAST will work and the variable g_sub1 will be assigned the value of g_super.
DATA: g_super TYPE REF TO lcl_super, g_sub1 TYPE REF TO lcl_sub1. IF g_super IS INSTANCE OF lcl_super. g_sub1 = CAST #( g_super ). g_sub1->method( ... ). ENDIF.
You cannot do any of the following:
Nobuko
30 days agoBrandee
1 months agoNatalie
6 days agoDominga
9 days agoRolf
11 days agoLuisa
20 days agoIrma
23 days agoGladys
1 months agoKanisha
1 months agoWei
1 months agoLindsey
1 months agoAlex
28 days agoAugustine
1 months agoKarl
1 months agoAlaine
2 months agoReita
2 months agoAmmie
2 months ago