C++ Friend Question: Download Questions PDF
Explain advantages of using friend classes?
![C++ Friend Interview Answer C++ Friend Interview Question](https://globalguideline.com/public/images/interview/8.png)
Answer:
A friend function has the following advantages:
- Provides additional functionality which is kept outside the class.
- Provides functions that need data which is not normally used by the class.
- Allows sharing private class information by a non member function.
- Provides additional functionality which is kept outside the class.
- Provides functions that need data which is not normally used by the class.
- Allows sharing private class information by a non member function.
Download C++ Friend Interview Questions And Answers
PDF
Previous Question | Next Question |
What are friend classes? | Explain the characteristics of friend functions? |