SAP Certified Associate - Back-End Developer - ABAP Cloud C_ABAPD_2507 Question # 23 Topic 3 Discussion

SAP Certified Associate - Back-End Developer - ABAP Cloud C_ABAPD_2507 Question # 23 Topic 3 Discussion

C_ABAPD_2507 Exam Topic 3 Question 23 Discussion:
Question #: 23
Topic #: 3

You have a superclass super1 and a subclass sub1 of super1. Each class has an instance constructor and a static constructor. The first statement of your program creates an instance of sub1.

In which sequence will the constructors be executed?


A.

Class constructor of sub1 → Instance constructor of super1 → Instance constructor of sub1 → Class constructor of super1


B.

Class constructor of super1 → Class constructor of sub1 → Instance constructor of super1 → Instance constructor of sub1


C.

Instance constructor of super1 → Class constructor of super1 → Class constructor of sub1 → Instance constructor of sub1


D.

Instance constructor of sub1 → Instance constructor of super1 → Class constructor of super1 → Class constructor of sub1


Get Premium C_ABAPD_2507 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.