Solved

When a Subclass Constructor Calls Its Superclass Constructor, What Happens

Question 11

Multiple Choice

When a subclass constructor calls its superclass constructor, what happens if the superclass's constructor does not assign a value to an instance variable?


A) A syntax error occurs.
B) A compile-time error occurs.
C) A run-time error occurs.
D) The program compiles and runs because the instance variables are initialized to their default values.

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