Interviewer And Interviewee Guide

C++ Friend Interview Question:

Explain advantages of using friend classes?

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online C++ Friend Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.