Computers and Technology
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?

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:00, 573589
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
image
Computers and Technology, 23.06.2019 21:00, shyshy1791
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
image
Computers and Technology, 25.06.2019 06:20, kromaug7986
In your pest busters game, how does player 2 move the ship 2 object? a pressing the w and s keys b. pressing the up arrow and down arrow keys c. moving the mouse from side to side d. moving the mouse up and down select the best answer from the choices provided
Answers: 1
image
Computers and Technology, 25.06.2019 08:00, india73
When date is processed into a meaningful form, i becomes
Answers: 1
Do you know the correct answer?
Import static java. lang. System.*; import static java. lang. Math.*;

public class OOP...

Questions in other subjects:

Konu
Social Studies, 05.05.2020 04:07
Konu
History, 05.05.2020 04:07
Konu
Mathematics, 05.05.2020 04:07