Import static java. lang. System.*;
import static java. lang. Math.*;
public class OOP...
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?
Answers: 3
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
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
Social Studies, 05.05.2020 04:07
History, 05.05.2020 04:07
Mathematics, 05.05.2020 04:07
Mathematics, 05.05.2020 04:07
Mathematics, 05.05.2020 04:07