Today i have a doubt regarding friend function.
Can two classes have same friend function?
Say example
friend void f1();
declared in class A and class B. Is t
#include
using namespace std;
class first
{
friend void getdata(first object1, int i);
};
class second
{
friend void getdata(second object2, int j);
};
getdata(first object1, int i, second object2, int j)
{
cout<