Which of the following statements are correct for a static member function? 1. It can access only other static members of its class. 2. It can be called using the class name, instead of objects.

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

Which of the following statements are correct for a static member function? 1. It can access only other static members of its class. 2. It can be called using the class name, instead of objects. Answer: Both 1 and 2 are correct.

Question context

This question is part of ⚙️ C++ Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.