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:
Cristen
3 months agoKrystina
3 months agoFelicia
3 months agoVeronika
3 months agoKarma
2 months agoTheola
3 months agoKelvin
3 months agoShanice
3 months agoElena
4 months agoEric
2 months agoAfton
2 months agoVanesa
3 months agoRobt
3 months agoKate
4 months agoTequila
4 months agoFabiola
3 months agoCharlesetta
3 months agoYolando
4 months agoAnnelle
4 months agoKimbery
4 months agoAngelyn
3 months agoAnabel
4 months agoDonette
4 months agoLeatha
4 months agoLonna
4 months ago