Multiple Choice
Look at the following code and determine what the call to super will do. public class ClassB extends ClassA
{
Public ClassB()
{
Super(10) ;
}
}
A) This cannot be determined form the code shown.
B) It will call the constructor of ClassA that receives an integer as an argument.
C) It will call the method named super and pass the value 10 to it as an argument.
D) The method super will have to be defined before we can say what will happen.
Correct Answer:

Verified
Correct Answer:
Verified
Q14: If a method in a subclass has
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
Q20: What is wrong with the following code?<br>Public
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
Q27: In an inheritance relationship, the subclass constructor
Q54: A compiler error will result if an