Amazon interview question

Explain the use of virtual functions