Answered You can hire a professional tutor to get the answer.

QUESTION

public class Dog { String name; String breed; double weight; boolean showdog; public Dog(String n, String b, double wt, boolean sd) { name = n; breed...

mainDogTesterpublic class DogTester {

  public static void main (String[] arg) {

    DogOwner jill;

    Dog d = new Dog("Hotdog", "poodle", 15.0, true);

    jill = new DogOwner("Jill", d);

    Dog c = new Dog("Chuckles", "spaniel", 8.0, false);

    jill.setDog(c);

    jill.setName("Darth");

    jill.getDog().setName("Lancelot");

I'm confused as to what method you would use to complete the code. Thanks in advance for your help.

  • Attachment 1
  • Attachment 2
  • Attachment 3
public class DogTester {public static void main(String arg) {DogOwner DogOwner jill;Dog d = new Dog("Hotdog", "poodle", 15.0, true);jill = new DogOwner("Jill",...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question