Domanda di colloquio di Shell

What is difference between virtual function and friend function?