<AptiCode/>

Question 494: In Python, what does the termselfrefer to in a class method?

tcs
wipro
infosys
general
aptitude
classes
python-programming

In Python, the termselfis a convention used to represent the instance of the class. It is the first parameter in the method definition and refers to the instance on which the method is called.