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.
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",…
Hi there! Click one of our representatives below and we will get back to you as soon as possible.