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.
d. The program compiles and runs because the instance variables are initialized to their default values.
Computer Science & Information Technology
You might also like to view...
A computer program called a spider is one that will catch bugs in your programming code
Indicate whether the statement is true or false
Computer Science & Information Technology
In PowerPoint, you can create a handout in Word by using commands on the INSERT tab
Indicate whether the statement is true or false
Computer Science & Information Technology