Is it possible?
class sample {
private:
int x;
public:
friend void fun();
};
friend function with no argument!
In my opinion not possible
Because friend functions are not "member" of classes
So we can not call with class object
like:
sample s;
s.fun();