Difference between ordinary function and member function in c++
Answers
Answered by
0
or -> operator like.so() or like->so() , instead of as a function argument so( like ) . ... Non-member functions are instead declared outside any class (C++ calls this "at namespace scope"). (Non-static) member functions can also be virtual, but non-member functions (and static member functions) cannot.
Similar questions