Multiple choice

Which of the following statements is WRONG regarding static member functions?

  1. We declare any function to be static by putting keyword <b style="mso-bidi-font-weight:normal"><i style="mso-bidi-font-style:normal">static before the function declaration in the class.

  2. A static member can access all the members of the same class.

  3. Static member function is invoked using the class name, instead of object's name

  4. None of the above

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

This option is correct because given statement is incorrect as static member function can access only static members (functions or variables) of the same class.