Im a little confused as to why I am getting the following error at runtime :
Exception in thread "main" java.lang.NoSuchMethodError: Dog.<init>(Ljava/lang/String;)V
at IteratorTest.main(IteratorTest.java:10)
Here is the source code, saved as IteratorTest.java, it is an example from K&B pg580, I've just decided to play around with it a bit however even copying the code exactly it doesnt seem to work.