NVIDIA interview question

Virtual functions and why we need them?