Bloomberg Interview Question

What is the reason of using virtual functions?