Answer the question
In order to leave comments, you need to log in
Explain the meaning of a static function outside of a class in C++?
What is the difference between using static in a member function of a class and outside the class?
Answer the question
In order to leave comments, you need to log in
The semantics are completely different. The scope of a static function is limited by the translation unit in which it is defined.
A kind of encapsulation in C.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question