subject
Computers and Technology, 21.10.2021 02:50 6FOOT

Import static java. lang. System.*; import static java. lang. Math.*;

public class OOPTestReview
{
public static void main (String [] args)
{
Dog1 woof = new Dog1(28,5,10);
woof. printStuff();
woof. printStuff2();
woof. printStuff3();
woof. doStuff();
woof. printStuff2();
}
}

class Dog1
{
private int teeth, legs, spots, weight;

public Dog1()
{
teeth = 30;
legs = 3;
spots = 8;
weight = 30;
}

public Dog1(int tth, int spt, int wt)
{
teeth = tth;
legs = 4;
spots = spt;
weight = wt;
}

public void doStuff()
{
teeth = teeth + 1;
}

public int doStuffTwo()
{
int cow;
cow = spots + legs;
return cow;
}

public int doStuffThree(int x)
{
weight = weight + x;
return weight;
}

public int doStuffFour(int x)
{
legs = doStuffThree(teeth) + x;
return legs;
}

public void printStuff()
{
out. println(doStuffThree(3));
}

public void printStuff2()
{
out. println(doStuffFour(spots));
}

public void printStuff3()
{
out. println(doStuffTwo());
}
}

What is the output of line 9?

What is the output of line 10?

What is the output of line 11?

There is no output for line 12.
true/false

What is the output of line 13?

ansver
Answers: 3

Another question on Computers and Technology

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, 23.06.2019 18:00
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What type of forensic evidence was recovered during the bomb set off at the new mexico facility on the video that was similar to the evidence obtained at the boston bombings and how did the evidence allow the researchers to connect other pieces of evidence to the same bomb?
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. this can be done by normalizing to values between 0 and 1, or throwing away outliers. for this program, adjust the values by subtracting the smallest value from all the values. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 30 50 10 70 65, the output is: 20 40 0 60 55
Answers: 1
You know the right answer?
Import static java. lang. System.*; import static java. lang. Math.*;

public class OOP...
Questions
question
English, 10.07.2021 19:40
question
Engineering, 10.07.2021 19:40
question
Mathematics, 10.07.2021 19:50
Questions on the website: 13722367