Home/What is correct about the static data member of a class?
Manish singh
Manish Singh is a content writer in our education. He specializes in small content distribution and contributes on Quick reference - Question and answers section of oureducation.in
Chetan Varshney
Classes can contain static member data and member functions. When a data member is declared as static, only one copy of the data is maintained for all objects of the class.
Static data members are not part of objects of a given class type; they are separate objects. As a result, the declaration of a static data member is not considered a definition. The data member is declared in class scope, but definition is performed at file scope. These static members have external linkage.