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
Q12: When an "is a" relationship exists between
Q13: Look at the following code. Which line
Q15: When a subclass overloads a superclass method:
A)
Q16: What key word can you use to
Q18: If ClassA extends ClassB, then:
A) public and
Q19: When a method is declared with the
Q20: Which of the following statements declares Salaried
Q21: Look at the following code. The method
Q22: Look at the following code. Which line
Q55: If a subclass constructor does not explicitly
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