0
In classes and objects i am using friend function!
why this friend doesn't work when i declared both data members n member function private?! i mean if i had to declare atleast members function public to use friend function then whats the use! then i can directly access private data members with public mem function!! so why friend doesn't work for both private data and function and only for general syntax of data members as private and mem function as public?
1 Answer