Solved

When a Subclass Constructor Calls Its Superclass Constructor,what Happens If

Question 1

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

Related Questions