Top Posters
Since Sunday
k
4
4
c
4
M
3
t
3
i
3
B
3
k
3
m
3
c
3
o
3
l
3
New Topic  
parneetgill parneetgill
wrote...
Posts: 468
4 years ago
What is the output of running class Test?

public class Test {
public static void main(String[] args) {
new Circle9();
}
}

public abstract class GeometricObject {
protected GeometricObject() {
System.out.print("A");
}

protected GeometricObject(String color, boolean filled) {
System.out.print("B");
}
}

public class Circle9 extends GeometricObject {
/** Default constructor */
public Circle9() {
this(1.0);
System.out.print("C");
}

/** Construct circle with a specified radius */
public Circle9(double radius) {
this(radius, "white", false);
System.out.print("D");
}

/** Construct a circle with specified radius, filled, and color */
public Circle9(double radius, String color, boolean filled) {
super(color, filled);
System.out.print("E");
}
}


▸ ABCD

▸ BACD

▸ BEDC

▸ CBAE

▸ AEDC
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


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

Related Topics

parneetgill Author
wrote...

4 years ago
Just got PERFECT on my quiz
wrote...

Yesterday
Thank you, thank you, thank you!
wrote...

2 hours ago
This helped my grade so much Perfect
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  857 People Browsing
Related Images
  
 391
  
 418
  
 217
Your Opinion
Do you believe in global warming?
Votes: 422