Well hiding the data is core of object-oriented programming but friend function in C++ is an exception which break the rule of OOP's.friend function and friend classes in C++ programming helps to give the access member functions from outside the class.or in the other words the protected and private data of a class can be accessed with the help of function in C++.Declare friend function in C++ friend...
Showing posts with label friend function. Show all posts
Showing posts with label friend function. Show all posts
Friday, March 12, 2021
Subscribe to:
Posts (Atom)