What is principle of friendship in the context of functions and-00587

Online Quiz This subjective question is related to the book/course vu cs402 Theory of Automata. It can also be found in vu cs402 Mid Term Solved Past Paper No. 1.

Question 1: What is principle of friendship in the context of functions and classes?
Answer:
Class can declare a friend function and someone from outside the class cannot declare itself friend of a class. A friend function can access the private variables of class just like a member function

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background