subject

Writing a Class

1. Fill in the blanks. (Note: The height of the triangle is longer than the base)

{ public class Triangle
int base;
int height;

public Triangle( )
{
= 5; =10;
}

public Triangle(int b, int h )
{
= ;
= ;
}

public getBase( )
{

;
}

public setBase( )
{

= ;
}

}

2. Fill in the blanks.

public class triangleDriver
{ public static main(String args[])
{
triangle1 = Triangle( );
System. out. println(“The triangle’s height is” + . );
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Kyle, a receptionist for a building supply company, recently won an award for saving his company money on their phone system. after being presented with kyle's research, the company changed the way in which it made long-distance phone calls and cut their expenses in this area by 75 percent. the new system the kyle's company most likely adopted was wired communications switching stations voip hdtv
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
You know the right answer?
Writing a Class

1. Fill in the blanks. (Note: The height of the triangle is longer than...
Questions
question
Mathematics, 07.01.2020 08:31
question
English, 07.01.2020 08:31
question
Mathematics, 07.01.2020 08:31
question
Mathematics, 07.01.2020 08:31
Questions on the website: 13722363