subject
Computers and Technology, 19.05.2021 04:00 ft2134

DogRunner. java /*
* Activity 1.2.4
*/
public class DogRunner
{
public static void main(String[] args)
{

}
}
public class Dog
{
public Dog(String name)
{
System. out. println("Hi! I am a dog. My name is " + name + ".");
}

public void sit()
{
System. out. println("OK! I am sitting.");
}

public void speak()
{
System. out. println("arf arf!");
}

public void walk(int num)
{
System. out. println("I love to walk for " + num + " minutes.");
}

public void walk(int num, String park)
{
System. out. println("I love to walk for " + num + " minutes and go to " + park + "!");
}

public void eat(String food)
{
System. out. println("I eat " + food + ".");
}

public void eat(String food, int num)
{
System. out. println("I eat " + food + " " + num + " times a day.");
}

public void eat(String food, double amount, int num)
{
System. out. println("I eat " + amount + " cups of " + food + " " + num + " times a day.");
}

public void setAge(int years)
{
System. out. println("I am " + years + " years old.");
}

public void setAge(int years, int months)
{
System. out. println("I am " + years + " years and " + months + " months old.");
}
public void setAge(double years)
{
System. out. println("I am " + years + " years old.");
}

public void play(String toy)
{
System. out. println("Oh boy! I get to play with my " + toy + "!");
}

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e nĆ£o consigo tira-la no chorme
Answers: 2
question
Computers and Technology, 24.06.2019 10:40
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
Which computer tools allow you to communicate with coworkers, family,and friends
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
You know the right answer?
DogRunner. java /*
* Activity 1.2.4
*/
public class DogRunner
{
publi...
Questions
question
Mathematics, 06.01.2021 21:50
question
History, 06.01.2021 21:50
question
Mathematics, 06.01.2021 21:50
question
Mathematics, 06.01.2021 21:50
question
Chemistry, 06.01.2021 21:50
question
Arts, 06.01.2021 21:50
question
Computers and Technology, 06.01.2021 21:50
question
Mathematics, 06.01.2021 21:50
Questions on the website: 13722360