Yahoo Interview Question
Software Engineer / DevelopersEven if it were a friend function wouldn't you need an object to invoke the friend function?
I think the point here is to be able to invoke a method without having to create an object of the class. Functions defined in the file scope are one way, as NM points out. But ofcourse the methods does not belong any class.
Friend functions???
- Amod September 14, 2006Can you elaborate the question more please...