A

Admin • 832.27K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Static methods do not take `self` or `cls` and operate independently of object or class state.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.