Atos Interview Question

what is deadlock how does virual function work