C++ Language/Objects/StaticMembers/StaticDataMembers

From Wikibooks, open books for an open world
Jump to navigation Jump to search

A "static-data-member" is a data member marked by the static keyword. It describes one value that is shared by all objects of that class. Generally, a static-data-member must be initialized outside the class definition (by writing int CRType::m_giVar = 11; at the top of some implementation file).

Additional information about static-data-members