Top Posters
Since Sunday
1
New Topic  
Eels Eels
wrote...
Posts: 716
Rep: 0 0
7 years ago
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.
B) It will call the method super and pass the value 40 to it as an argument.
C) The method super will have to be defined before we can say what will happen.
D) It will call the constructor of ClassA that receives an integer as an argument.
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 193 times
2 Replies
Replies
Answer verified by a subject expert
blitheringblithering
wrote...
Posts: 354
Rep: 9 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
University of Notre Dame

Related Topics

Eels Author
wrote...
7 years ago
YOU'RE AWESOME
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1109 People Browsing
Related Images
  
 928
  
 326
  
 331
Your Opinion
Who will win the 2024 president election?
Votes: 45
Closes: November 4