A

Admin • 833K Points
Coach

Q. What is true about instance methods in Python?

  • (A) They do not take any parameter
  • (B) They are called on class, not on object
  • (C) They must have `self` as the first parameter
  • (D) They cannot modify object state
  • Correct Answer - Option(C)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Instance methods must include `self` to refer to the calling object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.