Solved

What Is Wrong with the Following Code? Public Class ClassB

Question 25

Multiple Choice

What is wrong with the following code? public class ClassB extends ClassA
{
Public ClassB()
{
Super(40) ;
System.out.println("This is the last statement " +
"in the constructor.") ;
}
}


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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions