Q: 4
Class super has subclass sub. Which rules are valid for the sub constructor? Note: There are 2 correct answers to this question.
Options
Discussion
C or D. Had something like this in a mock, picked C and D, not sure about A.
Probably A and C, saw similar on practice exams. Official SAP guide covers constructor chaining rules well if anyone needs more detail.
Not B, A and C are valid. But does the question want the most restrictive rules or just any valid ones? If the superclass constructor initializes handlers for events, then D could also matter here.
Option A and C. D is tempting but only constructor chain rules are needed here, not event logic.
A and C.
Signature of the subclass constructor can be different from the super, and you have to call super's constructor before touching anything in your own instance. Pretty sure these are the main ABAP rules here. Agree?
Signature of the subclass constructor can be different from the super, and you have to call super's constructor before touching anything in your own instance. Pretty sure these are the main ABAP rules here. Agree?
Be respectful. No spam.