what is difference between static member function and global member function and when we should go for each

what is difference between static member function and global function and when we should go for each?

AS we don't require object to call static function and also scope for both static and global function is throughout the program then in which situation we should go for each?
A static member function must always be within the scope of a class.
A non-member function must always be within the scope of a namespace.
Topic archived. No new replies allowed.