<Apti
Code
/>
Back
Question 509: What is the role of theselfparameter in Python class methods?
tcs
wipro
infosys
general
aptitude
objects
python-programming
Theselfparameter in class methods refers to the instance of the class on which the method is called.
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
Submit Answer
Show Answer
Previous
Next