What are the uses of friend function in c ++
Answers
Answered by
10
Explanation:
Friend Function In C++
A friend function in C++ is a function that is preceded by the keyword “friend”. When the function is declared as a friend, then it can access the private and protected data members of the class. A friend function is declared inside the class with a friend keyword preceding as shown below.
Answered by
0
Answer:
Friend Function In C++
Friend Function In C++A friend function in C++ is a function that is preceded by the keyword “friend”. When the function is declared as a friend, then it can access the private and protected data members of the class. A friend function is declared inside the class with a friend keyword preceding as shown below.
Explanation:
hope it helps u
Similar questions