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 4 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
- What Is The Input Electric On A Dsi?
- How To Make A C++ Program Of ATM?
- What Are The Classified Input In Economists?
- What Are The Classified Input Had Economics?
- : Develop An Object Oriented Program In C++ To Read The Following Information From The Keyword In Which The Base Class Consists Of Employee Name, Code And Designation, And The Derived Class Containing The Data Members, Viz. Years Of Experience And Ag
- What Is Input Technologies Trends?
- What Are The Input Technologies?
- What Floods Include Weatherwise?
- Why Are Economists Input As Timeless?
- 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?
- 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)?
- 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?

New Comment - Comments are editable for 5 min.