Multiple Choice
What is wrong with the following code?
Public class ClassB extends ClassA
{
Public ClassB()
{
Int init = 10;
Super(40) ;
}
}
A) Nothing is wrong with the code.
B) The method super is not defined.
C) The call to the method super must be the first statement in the constructor.
D) No values may be passed to super.
Correct Answer:

Verified
Correct Answer:
Verified
Q15: When a subclass overloads a superclass method:<br>A)
Q17: Look at the following code. The method
Q18: A protected member of a class may
Q19: Look at the following code and determine
Q21: If you do not provide an access
Q23: If ClassA extends ClassB, then:<br>A) public and
Q24: In the following statement, which is the
Q25: Given the following code which of the
Q27: In an inheritance relationship, the subclass constructor
Q54: A compiler error will result if an