(Solved):What is a friend function? What is the difference between a friend function and a regular member function of a class? View Answer…

 

Question

1) What is the difference between a class and an instance of a class? Give an example.

2) What is information hiding, and how is it implemented in C++?

3) What is operator overloading and how is it implemented in C++?

4) What is a friend function? What is the difference between a friend function and a regular member function of a class?

 

EXPERT ANSWER

(4) friend function: We know that a private data member

Scroll to top