Pergunta de entrevista da empresa Bloomberg

What is the reason of using virtual functions?