SAP
C_TAW12_750 · Question #327
Given the code in the exhibit (see Figure 17.9) and the knowledge that both lcl_truck and lcl_car inherit from lcl_vehicle, which statements are true? Select all that apply
The correct answer is A. The code will produce a runtime error. B. The code shows two valid up casts. C. The table lt_vehicle contains three vehicles. See the full explanation below for the reasoning.
Question
Given the code in the exhibit (see Figure 17.9) and the knowledge that both lcl_truck and lcl_car inherit from lcl_vehicle, which statements are true? Select all that apply
Options
- AThe code will produce a runtime error.
- BThe code shows two valid up casts.
- CThe table lt_vehicle contains three vehicles.
- DThe code is not syntactically correct.
- EThe code shows no valid up casts.
- FThe code shows three valid up casts.
How the community answered
(19 responses)- A74% (14)
- D5% (1)
- E5% (1)
- F16% (3)
Community Discussion
No community discussion yet for this question.