Python Programming - Objects - Discussion

Discussion Forum : Objects - General Questions (Q.No. 3)
3.
What is the role of the self parameter in Python class methods?
It represents the class itself
It is used to create a new instance of the class
It refers to the current object instance
It initializes the class attributes
Answer: Option
Explanation:
The self parameter in class methods refers to the instance of the class on which the method is called.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.