Q. Which of the following statements is correct for a static member function?
1. It can access only other static members of its class.
It can be called using the class name, instead of objects
-
(A)
only 1 is correct
-
(B)
only 2 is correct
-
(C)
both 1 and 2 are correct
-
(D)
both 1 and 2 are incorrect
✅ Correct Answer: (C)
both 1 and 2 are correct