News

Friend Function:-Friend Function is Friendly to all the classes which can be declared as a friend of that class. "Friendship is given not taken" this statement means to say the friend is always ...
Friend Function: A function declared as a friend of a class can access the private and protected members of that class. Friend Class: A class declared as a friend of another class can access its ...
Here is a Friend function of cpp. Friend Function-If a function is defined as a friend function in C++, then the protected and private data of a class can be accessed using the function.