Top Posters
Since Sunday
r
5
m
5
h
5
r
5
t
5
B
5
P
5
s
5
m
5
c
5
c
4
4
New Topic  
lbelcher lbelcher
wrote...
Posts: 482
4 years ago
Consider the following declaration for a class A.

class A {
private int x;
private int y;
 
public A(int x, int y) {
this.x = x;
this.y = y;
}
}

Class B is a subclass of A. Which of the following can be constructors in B?

I:
public B() {
}

II:
public B(int x, int y) {
super(x, y);
}

III:
public B() {
super(0, 0);
}

IV:
public B(int x, int y) {
this.x = x;
this.y = y;
}


▸ I

▸ II

▸ III

▸ IV
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 45 times
1 Reply
Replies
Answer verified by a subject expert
yesimshayyesimshay
wrote...
Posts: 360
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

lbelcher Author
wrote...

4 years ago
Brilliant
wrote...

Yesterday
this is exactly what I needed
wrote...

2 hours ago
Thanks for your help!!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  774 People Browsing
Related Images
  
 347
  
 550
  
 282
Your Opinion
Who will win the 2024 president election?
Votes: 7
Closes: November 4

Previous poll results: What's your favorite math subject?