MAERSK interview question

Q4. What is virtual function? Share your screen and code an example demonstrating virtual function.