C ++: static member variable
4 answers
It is not right. Data items static
can be modified by any member function. static
methods can also be called by any member function.
Quite the opposite: methods static
cannot call methods static
and cannot access <elements static
.
This is because members static
(methods and data) are bound to the class, whereas non-static is bound to instances of the class.
+7
source to share