Hi Andy,
yes you are right. there was a problem with the 's'. Lets analyse the code.
for the x=1 , a[1] = new Dog() and hence we can write
Animal a = new Dog();
a.doStuff();//which will invoke the static method of the Dog class.
output will be
d: why then its showing the output
d:a:.
Please explain.
Anvi