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 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
You know the right answer?
Consider the following partial class declarations for the Triangle and EquilateralTriangle classes:...
Questions
question
French, 30.10.2021 01:40
question
Mathematics, 30.10.2021 01:50
Questions on the website: 13722363