i am new to c++ programming, can we declare some members of class as friend to other class. it means Lets say Class A have three member functions and instead of declaring whole class as friend to other Class B (say) can i declare only one member of class A as friend to Class B, so please help.
Share
Yes you can declare a single member function as friend of another class.
Online Sample: