0
What is member function and what is an example of non-member function?
1 Antwort
+ 1
Non-member functions are declared outside any class (C++ calls this "at namespace scope").
When declaring a member function, you need to do so in the class of which it is a member:
class Class {
public:
void a_public_member_function();
};