Atos interview question

what is deadlock how does virual function work