Study Notes (12): C ++ Language Basics video tutorial -3.12 static member

Learning immediately: https://edu.csdn.net/course/play/474/5139?utm_source=blogtoedu

Static data members are shared by all objects stored in a separate open space outside all objects

 

Static member functions and static data members are accessed directly through the class name

 

Static member function (no this pointer) can not access non-static data members

 

 

 

 

Published 17 original articles · won praise 0 · Views 128

Guess you like

Origin blog.csdn.net/cangersuifeng/article/details/104859915