Capgemini Engineering interview question

Tell us about virtual function and when and where will be used