A
A
Aleksandr2018-05-18 09:33:15
C++ / C#
Aleksandr, 2018-05-18 09:33:15

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

1 answer(s)
F
Fat Lorrie, 2018-05-18
@Free_ze

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 question

Ask a Question

731 491 924 answers to any question