Solved

If a Subclass Constructor Does Not Explicitly Call a Superclass

Question 18

Multiple Choice

If a subclass constructor does not explicitly call a superclass constructor,


A) the superclass's fields will be set to the default values for their data types
B) Java will automatically call the superclass's default constructor immediately after the code in the subclass's constructor executes
C) it must include the code necessary to initialize the superclass fields
D) Java will automatically call the superclass's default constructor just before the code in the subclass's constructor executes

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents