Friend function: –

Friend function: - It is a non-member function. The use of friend function is to access the private member function of class or classes. Note: - As we know that a non-member function (Which is not a part of the class) cannot access the private member of class but by using friend function we can... Continue Reading →


Create a website or blog at

Up ↑

%d bloggers like this: