Amazon Interview Question

Explain the use of virtual functions