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
💬 Discuss
✅ Correct Answer: (C) both 1 and 2 are correct

You must be Logged in to update hint/solution

💬 Discussion

📊 Question Analytics

👁️
944
Total Visits
📽️
3 y ago
Published
🎖️
Mr. Dubey
Publisher
📈
80%
Success Rate