Exam PEGACSA72V1 All QuestionsBrowse all questions from this exam
Question 17

Each of the following classes has a data transform named SetValues with the Call data transforms in superclass option selected. The SetValues data transforms set the properties PropA and PropB, as shown in the following table.

What is the value of PropA and PropB after the SetValues in MyCo-App-Data-A has been invoked?

    Correct Answer: A

    The value of PropA and PropB after the SetValues data transform in MyCo-App-Data-A has been invoked would be PropA=1 and PropB=2. This is because the SetValues data transform in MyCo-App-Data is called first, setting PropA to 1. Then, the SetValues data transform in MyCo-App-Data-A is called, setting PropB to 2. Since MyCo-App-Data-A invokes the data transform in its superclass, the changes made in MyCo-App-Data are applied before the changes in MyCo-App-Data-A. Therefore, the final values are PropA=1 and PropB=2.

Discussion
ClairFraserOption: A

A. PropA=1 and PropB=2. The other data transforms have not yet run