Re: Re: Re: Re: Re: George
Thanks for all of your help, Gabriel buddy!
regards,
George
Quote:
Originally posted by Gabriel Fleseriu
It was never my intention to say they were the same. They are definitively not. The one difference you named is correct. There also are others, for example class access qualifiers(public/protected/private) don't apply to friends, and friends are not inherited. To ask the same question the other way around: what are the similarities between a friend function and a static member function? Or, more generally, why can we say that a friend function is actually part of the class? What is a class, actually? Try to think of these questions not from the point of view of the language syntax, but from that of what a class is supposed to model.