Shell Interview Question

What is difference between virtual function and friend function?