The files at the links below contain source code for three interrelated classes, a Dog class, a DogOwner class, and a DogTester class that manipulates objects from the other two classes.
/JavaCS1/src/dogpatch/DogTester.java
/JavaCS1/src/dogpatch/DogOwner.java
/JavaCS1/src/dogpatch/Dog.java
Write a statement that creates a 15 kg showdog called "Hotdog" that's a poodle. Reference this dog using the Dog variable d.
public class DogTester { public static void main (String[] arg) { Dog d = null;
SO i write:
Dog d = new Dog("Hotdog","poodle",15.0,true);
and then there error says "compilation error(line 1, column 5): d is already defined in q1()
i dont understand because its saying use d then it says its already defined..