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

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp