Abstract: Friend function is a normal C++ function that can access private members of the class to whom it is declared as friend. Private members of a class cannot be accessed from outside the class. However there could be a situation where more than one classes want to share a particular function.
Keywords: friend, private, protected, public.
Downloads:
|
DOI:
10.17148/IJARCCE.2024.13918
[1] Mrs. Suwarna Vijay Nimkarde, Mrs. Shobhana Avinash Gaikwad, "friend Function in C++," International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2024.13918