Multiple choice

Which one of the following statements is incorrect about static member functions?

  1. A static function can have access to only other static members declared in the same class.

  2. A static function can be called using the class name instead of its objects.

  3. The keyword static is used before the function name.

  4. None of the above.

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

All statements A, B, and C are correct about static member functions: they can only access other static members, can be called using class name, and the static keyword appears before the return type in declaration (not before the function name). Since all individual statements are true, 'None of the above' is technically incorrect, making D the answer choice.