Let me phrase out on what actually i got from your reply, so that you can make me further clear whether i am wrong or not.
We create a this method and with the variable animales we execute all the methods of the classes that implements the interface.
public moveAnimals(Animal[] animals)
{
for(int i=0; i<animals.length; i++)
animals[i].move();
}
So the Output of the following program would be :
crawl
run
fly
Is that correct and actually is this polymorphism.