2078 7

Object Oriented Programming20785 marksFriend function and Static function

What is the concept of friend function? How it violates the data hiding principle? Justify with example.

What is the concept of friend function? How it violates the data hiding principle? Justify with example. [5]

A friend function is a non-member function that is granted special access to the private and protected members of a class. Although it is not a member of the class, it can access all private and protected data of that class as if it were a member. The declaration of a friend function is made insi...

Up nextWhat is structured programming? Discuss characteristics and problems associated with struc