Multiple Choice
In the following code, what will the call to super do?
Public class ClassB extends ClassA
{
Public ClassB()
{
Super(40) ;
System.out.println("This is the last statement "+
"in the constructor.") ;
}
}
A) This cannot be determined from the code.
B) It will call the method super and pass the value 40 to it as an argument.
C) It will call the constructor of ClassA that receives an integer 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
Q1: When one object is a specialized version
Q2: In UML diagrams, inheritance is shown:<br>A) With
Q5: In an inheritance relationship:<br>A) The superclass constructor
Q6: Private members of the superclass cannot be
Q8: Replacing inadequate superclass methods with more suitable
Q9: Protected class members are denoted in a
Q10: Every class is either directly or indirectly
Q11: A subclass can directly access:<br>A) all members
Q60: It is not possible for a superclass
Q63: If two methods in the same class