subject

Consider the following partial class declarations for the Triangle and EquilateralTriangle classes: public class Triangle
{
private int side1, side2, side3;
public Triangle (int a, int b, int c)
{
side1 = a;
side2 = b;
side3 = c;
}
// other code not shown
}
public class EquilateralTriangle extends Triangle
{
public EquilateralTriangle(int s)
{
< missing code >
}
// other code not shown
}
What code should replace < missing code >?
A) super();
B) super(s);
C) super(int s);
D) super(s, s, s);
E) super(side1, side2, side3);

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
Consider the following partial class declarations for the Triangle and EquilateralTriangle classes:...
Questions
question
Computers and Technology, 22.09.2019 03:00
question
Social Studies, 22.09.2019 03:00
question
Mathematics, 22.09.2019 03:00
question
Mathematics, 22.09.2019 03:00