When a derived class constructor calls its base class constructor,what happens if the base class's constructor does not assign a value to one of its instance variables?
A) a syntax error occurs
B) a compile-time error occurs
C) a run-time error occurs
D) the instance variables are initialized to their default values
Correct Answer:
Verified
Q21: An abstract class cannot have instance data
Q34: Consider the classes below: Q35: When a base class method is overridden Q36: Base class methods with this level of Q37: A base class's method that's overridden in Q38: The Protected members of a base class Q40: Private fields of a base class can Q42: Classes which may be instantiated are _ Q43: Abstract methods and properties do not provide Q44: The use of polymorphism helps promote software![]()
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents