4 Answers - Sort by: Date | Rating
Friend functions are neeeded to make bridges between classes and to give permission to a normal function of accessing private data of a class.
1
0
Hai meenaxi i have many doubt i want to become software engineeriner please help give me reply to my mail asokassspmap11@gmail.com not only meenaxi anyone can help me please
Hai meenaxi i have many doubt i want to become software engineeriner please help give me reply to my mail asokassspmap11@gmail.com not only meenaxi anyone can help me please
Continue asking questions. But not by mail. I can Help Only Here at BlurtIT
Friend functions are non-member functions, preceded by a keyword "friend". It is used for accessing the members of a class being a non-member function.
0
0
Guest
answered 3 months ago
Friend Function is needed To access Private variables obviously.
For Private data isn't accessible by non-member functions or outside classes.
For Private data isn't accessible by non-member functions or outside classes.
0
0
-> Friend function normally used for accessing private member of the class.-> With the help of the Friend function we can access different class object.-> In operator overloading, with the help of the friend function we can use primitive data type argument and user define argument at one function.-> It is not a member function of the class.-> When we want addition,subtraction... On different class we can use friend function easily.
0
0
- Why Do We Use Main() Function In C++?
- What Is An Example Of An Input Devise?
- How To Make A Simple Programming?
- Where Can I Learn DirectX Or OpenGL In C++?
- What Does |= And &= Means In C++?
- What Is Input From Technology Means?
- Write A Program In C/C++ To Implement Cohen-Sutherland Line Clipping Algorithm. In This Implementation, Consider Two Cases Of A Line: Totally Visible, Totally Invisible, Against The Rectangular Clipping Window?
- Can Somebody Tell Me Why This Code Will Not Compile: #include "Stdafx.h" //added This Include #include //added Stream To Io Using Namespace Std; Int Main() { //declare Variables Int Choice=0; Std::cout?
- Sample Program Which Requires 2 Numbers, Input 1 And Input Which Will Be The Start Of A Fibonacci Series?
- Sample Program Which Requires 2 Input For Fibonacci Series?
- Write A Program That Receives An Integer As Input And Outputs The Product Of Its Digits. E.g. 1234 = 24, 705 = 0, 478 = 224 Using C++?
- What Is Input Stream?
- How Do I Input Answers?
- How Do I Write A Program To Compute The Standard Deviation Of 5 Input Values. Create A Constant For The Number Of Values (5). Ask The User For The Numbers. Next, Compute The Mean (sum Divided By 5)?
- How We Can Sort Link List In C++?
- What Are Link Lists In C++?
- Where Can I Download C++ Programmes File?
- How To Figure Out The 2 Operations That Result In The Given Numbers On An Input/output Machine?
- What Do U Mean By Abstraction And Encapsulation?
- Explain The Fundamental Data Types In C Programming?
- How Is A Class Different From A Structure And Union?
- Technology Used For Input In Pda Or Palmtop?
- I Am A Student Of Bs CS. It Is My Importantt Question Please Give Me Best Answer. My Question Is That "Why We Call C Language A C Language"?
- What Dose Input Mean?
- What Is Method Overloading?

New Comment - Comments are editable for 5 min.