Pregunta de entrevista de IBM

What's a virtual function, why we need it?