Which statement is correct about static member function in C++? I. It can…

PYQ DSSSB 2021

Which statement is correct about static member function in C++? I. It can access only other static members declared in the same class. II. It cannot be called using the class name (instead of its objects).

  1. A.

    Only I

  2. B.

    Only II

  3. C.

    Both I and II

  4. D.

    Neither I nor II

Attempted by 972 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…