Why can = operator not be overloaded with member function?
i want to know the reason as to why can't the = operator be overloaded with friend function of the class?why do we only have to use the member function??
this is the code :-
void set::getdata(int a)
void set::operator=(set b)