// Tester for Dog class
// Marcus Ward
// 11/02/2012
public class DogTester
{
public static void main(String[] args)
{
Dog firstDog = new Dog();
firstDog.setName("Rover");
firstDog.setBreed("Alsatian");
firstDog.setHeight("23");
System.out.print(firstDog.toString());
}
}
Error:
DogTester.java:13: setHeight(int) in Dog cannot be applied to (java.lang.String)
firstDog.setHeight("23");
^
1 error