write my assignment 4696

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",…

 
"Not answered?"
Get the Answer