R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `self` represent in a class?

  • (A) The class itself
  • (B) The object being created
  • (C) A global variable
  • (D) A static method
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Python
  • Hashtags:

Explanation by: Ram Sharma
`self` refers to the current instance of the class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.