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.


PDF | DOI: 10.17148/IJARCCE.2024.13918

Open chat
Chat with IJARCCE