Hi All,
having trouble understanding the term polymorphism. could some one give a simple scenario example?
int velocity;
public void moveLeft()
{
setLocation ( getX() - velocity, getY() );
}
public class hero extends mover
{
public hero()
{
this.velocity = 4;
}
public void act()
{
moveLeft();
}
}