Top Posters
Since Sunday
G
4
o
4
4
K
3
m
2
c
2
r
2
p
2
s
2
s
2
b
2
c
2
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 190 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
  1205 People Browsing
Related Images
  
 55
  
 1318
  
 383
Your Opinion