Answered You can hire a professional tutor to get the answer.
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