Multiple choice

A static member function can change

  1. any member of the class instances

  2. only static members of class instances

  3. only integer values

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Static member functions in C++ can access and modify only static data members of the class, not instance-specific members. This is because static functions are not bound to any particular object instance.