Multiple choice technology programming languages

which of the following is not true for static member function ?

  1. A static member function can access only static member data, static member functions and data and functions outside the class.

  2. A static member function can be called, even when a class is not instantiated

  3. A static member function cannot be declared virtual

  4. A static member function can have access to the 'this' pointer of the class

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

Static member functions don't have a 'this' pointer because they are not bound to any object instance - they belong to the class itself. Options A, B, and C are all true: static functions can only access static members, can be called without instantiating the class, and cannot be virtual.