on 2024 May 27 6:16 PM
Hello everyone, please help me with the following question:
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 the program created an instance of sub1. In which sequence will the constructors be executed?
a. Class constructor of super1
b. Instance constructor of sub1 c. Instance constructor of super 1 d. Class constructor of sub1.
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.