Only static member functions can access static data members. A static member belongs to the class and not to individual objects. Therefore, each object of the class accesses the same static member.