Q. What does `@staticmethod` indicate?

  • (A) The method can access class variables
  • (B) The method can access instance variables
  • (C) The method does not access class or instance variables
  • (D) The method is a class constructor
πŸ’¬ Discuss
βœ… Correct Answer: (C) The method does not access class or instance variables
Explanation: Static methods do not take `self` or `cls` and operate independently of object or class state.
Explanation by: Mr. Dubey
Static methods do not take `self` or `cls` and operate independently of object or class state.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate