Pregunta de entrevista de Siemens Digital Industries Software

Can you explain how virtual functions and polymorphism work in C++ with an example?